An Overview of PSQL Control Center
PSQL Control Center (PCC) is an integrated framework in which users can connect to PSQL engines, set up and modify databases and tables, query and update data, tune engine performance, and access the PSQL documentation library.
PCC uses a file explorer motif – a tree of objects – referred to as the PSQL Explorer. This tree of objects can be opened or expanded to reveal more detail. Examples of objects include engines, databases, tables, and users. The following figures illustrate PCC with several window views displayed. The PSQL Explorer is the tree view on the left.
Figure 17 PSQL Control Center on Windows Platforms
Figure 18 PSQL Control Center on Linux Platforms
Depending on the Linux distribution or if you are using OS X, the appearance of PCC may differ, but functionality is the same.
Installing PCC
On Windows platforms, PCC is installed by default when you install a database engine or a client. See PSQL Optional Features in Getting Started with PSQL.
On Linux and OS X, PCC is included in the full installation. See Full and Client Installations in Getting Started with PSQL.
Starting PCC on Windows
Access Control Center from the operating system Start menu or Apps screen. You may also run the executable file pcc.exe.
Starting PCC on Linux
Start PCC by running the executable script file pcc from a command prompt. The script file is located, by default installation, in the usr/local/psql/bin directory.
We recommend that you start PCC from a command prompt and not by double-clicking the script file using a file browser application. See Table 6, Troubleshooting Guide for Running PCC.
The following requirements must be met to start PCC on Linux.
If you have met the requirements to run PCC and still are having difficulty running the utility, refer to the following troubleshooting guide.
Starting PCC on OS X
On OS X, only the user logged in to the Desktop can start PCC. Open Finder and then Applications > Actian PSQL > PSQL Control Center.
Situations Requiring That You Clear PCC Cache
PCC caches certain information to improve efficiency. The cache must be cleared after you install or upgrade any other products that interact with PCC. Otherwise, the installed or upgraded product does not appear in PSQL Explorer. For example, if you were to install or upgrade DataExchange, you would then need to clear the PCC cache.
The cache can be cleared only by starting PCC with a parameter from the command line.
1
2
3
For default locations of PSQL files, see Where are the PSQL files installed? in Getting Started with PSQL.
4
pcc -clean
PCC starts and clears its cache. The newly installed or upgraded products should then appear in the PSQL Explorer.
*Note: Use of the -clean parameter when starting PCC provides no advantage under normal usage. It is needed only if you install or upgrade a plug-in product.
Editors and Views Within PCC
The PCC main window offers various editors and views:
You can display and work with objects through the different editors and views. Multiple editors of the same type, such as SQL Editor, can be open at the same time. Each object being edited is represented by a tab on top of the editor. The tab contains the name of the object. Data modified within an editor must be explicitly saved (for example, with File > Save).
Views, such as PSQL Explorer, can be opened only one at a time. Your actions within a view are applied immediately, without your having to save them.
Editor and View Characteristics
The following table summarizes the characteristics of the editors and views.
PSQL Explorer
This view displays a tree of objects of various types and enables you to do many tasks.
Objects and Their Properties
The tree of objects includes a root node named PSQL. The root node contains objects such as clients, services (if applicable), database engines, databases, tables, views, stored procedures, user-defined functions, triggers, groups, users, and system objects (such as system tables).
Most objects in PSQL Explorer can be expanded to reveal more detail. Click the expand icon to the left of an object to see objects under it. The expand icon may be a plus sign “+”, a triangle “”, or some other similar symbol. The collapse icon appears after you click an expand icon. Click the collapse icon to hide subordinate objects.
If properties (configurable settings) apply to an object, you can access them by right-clicking an object and selecting Properties. You can also click an object then press Alt+Enter to display properties. See also Configuration Reference in Advanced Operations Guide.
Figure 19 Example Objects Shown in PSQL Explorer
Right-click Tasks
In addition to accessing properties, numerous other tasks can be invoked from PSQL Explorer by right-clicking an object. The following table summarizes the tasks.
To access Capacity Usage Viewer in Advanced Operations Guide
To access Monitor for a database engine in Advanced Operations Guide
To repair a database name and associate copied tables with a new database
Add table
(performs a
SELECT * from table_name query)
SQL Editor
SQL Editor allows you to run Structured Query Language (SQL) statements against a PSQL database. See SQL Editor for a detailed discussion.
Grid
The Grid window view shows in a matrix format, like a spreadsheet, the result of running SQL statements. Each field is represented as a column and the data appears in cells within the columns. You can change data directly in the Grid cells as well as add additional rows to the Grid.
Both Table Editor and SQL Editor use the Grid. See To view table data and Grid Window View for further details.
Text
The Text window view shows in a text format the result of running SQL statements. The text is display only. You cannot change data values by changing the text, but you can copy text. See Text Window View for a detailed discussion.
Outline
The Outline window view allows you to view the SQL statements in a tree structure. The root node of the tree is the same name as the name of the SQL Editor window view. See Outline Window View for a detailed discussion.
Note that the editor must support an outline or the Outline window view is not available. Currently, only SQL Editor supports an outline view.
Table Editor
Table Editor allows you to add, delete, or change the characteristics of columns within a table. The table may be one newly created or an existing table that you want to edit. See Table Editor for a detailed discussion.
Preferences
You can set general preferences for your experience in PCC. You can also set preferences for the window views in PCC or for the external tools.
1
On the PCC Window menu, click Preferences. Expand the PSQL node if it is not already expanded.
2
Click General.
The following are the options that can be set in the General Preferences:
Select Always remove associated DSN entries to have all DSN entries for any database automatically deleted along with the database without prompting.
Clear Do not prompt for new database each time a SQL document is opened to be prompted to select a database each time you open a SQL document in the SQL Editor. If this option is deselected, select it to use the most recently selected database when you open a SQL document. The selected database is not maintained across PCC sessions. If you close and reopen PCC, you will have to select a new default database context.
Preferences for PCC Window Views
You can set preferences for the following PCC window views:
1
In the PCC Window menu, click Preferences, and expand the PSQL node if needed.
2
File Encoding Preferences
The preference setting for File Encoding allows you to work more easily with files containing wide character data. This setting provides the following features:
1
In PCC, select Window > Preferences > PSQL > File Encoding.
2
Make sure that the option Do not prompt for encoding during File Open and File Save is not selected. By default, the option is not selected.
3
1
In PCC, select Window > Preferences > PSQL > File Encoding.
2
Select an encoding from the Default encoding list and click OK.
 
*Note: You can also access the File Encoding preference setting from the dialogs for File Open, Save File, Import Data, Export Data, and Export Schema. Click Change default encoding in the dialog.
Additional Utilities
Some utilities have not yet been tightly integrated within the PCC framework. However, they may still be started from within PCC by selecting them through the Tools menu:
ODBC Administrator – Separate choices for 32-bit Administrator and 64-bit Administrator on 64-bit operating systems (see DSN Setup and Connection Strings in ODBC Guide). Note that Windows uses whichever ODBC Administrator is open if you try to invoke the other one. That is, if the 32-bit ODBC Administrator is open and you attempt to start the 64-bit one, Windows displays the 32-bit version (and vice versa). In other words, only one version of ODBC Administrator runs at a time. This is a limitation of Windows rather than PSQL.
Monitor (see Monitoring in Advanced Operations Guide)
Rebuild (see Converting Data Files in Advanced Operations Guide)
*Note: These utilities appear in the Tools menu by default only on Windows platforms. For all platforms, you can customize the Tools menu. See the next topic for instructions.
External Tools
You can add your own software programs to the PCC Tools menu.
1
On the PCC Window menu, select Preferences. Expand the PSQL node if it is not already expanded.
2
Click External Tools.
3
Click New.
4
Type a name for Tool Label that you want to appear in the Tools menu.
5
You can click the ellipsis button to browse to the file location.
6
Optionally, type any parameters for Tool Parameters that should be passed to the program when the program starts.
7
8
Click OK (or Apply then OK) to close the Preferences dialog.
1
On the PCC Window menu, click Preferences. Expand the PSQL node if it is not already expanded.
2
Click External Tools.
3
Click the desired tool in the External Tools list.
4