January 2019
Beginner
556 pages
14h 19m
English
The psql client can be personalized. The .psqlrc file is used to store user preferences for later use. There are several aspects of psql personalization, including the following:
You can change the psql prompt to show the connection string information including the server name, database name, username, and port. The psql variables—PROMPT1, PROMPT2, and PROMPT3—can be used to customize user preferences. PROMPT1 and PROMPT2 are issued when you create a new command and a command that expects more input, respectively. The following example shows some of the prompt options; by default, when you connect to the database, only the name of the database is shown.
The set meta-command is used ...
Read now
Unlock full access