pgAdmin Query tool Options

Use the options that are located under the Query tool node of the tree control to personalize the behavior of the Query tool.

_images/options-query_editor.png

Use the fields on the Query editor dialog to specify workspace preferences for the Query editor:

  • Font - Use the Font selector to specify the font used in the Query tool interface.

  • Max characters per column - Use the Max characters per column field to specify the maximum length of data displayed in a single column.

  • Indent characters - Use the Indent characters field to specify the number of characters to indent with in SQL text boxes.

  • Use spaces instead of tabs - Check the box next to Use spaces instead of tabs to instruct pgAdmin to insert a space when you press the tab key in an SQL text box.

  • Copy SQL from main window to SQL dialogue - Check the box next to Copy SQL from main window to SQL dialogue to instruct pgAdmin to copy any object definition displayed on the main object browser for use as a default query in the Query Tool when the Query Tool opens.

  • Enable Auto ROLLBACK - Check the box next to Enable Auto ROLLBACK to instruct the query tool to execute a ROLLBACK if a query fails.

  • Keywords in uppercase - Check the box next to Keywords in uppercase to instruct the Query tool to convert any keywords entered to an uppercase font.

_images/options-colours.png

Use the fields displayed on the Colours dialog to select colours for items displayed in the Query tool:

  • Foreground/Background - Use the color selectors in the Foreground/Background box to specify background and foreground colors for the Query tool.

  • Caret - Use the color selector in the Caret box to specify a color for the caret (or cursor).

  • SQL Syntax Highlighting - Use the color selectors in the SQL Syntax Highlighting box to specify display colors for syntax components.

_images/options-results_grid.png

Use the fields on the Results Grid dialog to specify display preferences for the results grid.

  • Result copy quoting - Use the Result copy quoting drop-down listbox to specify how fields in a result set should be quoted when copied to the clipboard from the result list. Please Note Disabling this option may prevent copying and pasting rows in the edit grid from functioning properly if the result set contains special characters like line breaks. Specify:

    • None to omit quotes when copied.

    • Strings to quote string values when copied (numeric columns will not be quoted).

    • All to quote all copied values (regardless of data type).

  • Result copy quote character - Use the Result copy quote character drop-down listbox to select a character that will be used to quote the values when copied to the clipboard from the result list. It has no effect if Result copy quoting is set to None.

  • Result copy field separator - Use the Result copy field separator drop-down listbox to select a character that will be used to separate the fields copied to the clipboard from the result list.