Override restrictions, so system table structures can be modified.
These tables are typically those with a leading
- "pg_" in the table name.
+ pg_ in the table name.
Ignore system indexes to scan/update system
- tuples. REINDEX for system tables/indexes
+ tuples. The REINDEX for system tables/indexes
requires this option. System tables are
- typically those with a leading "pg_" in the
+ typically those with a leading pg_ in the
table name.
The new query buffer is then re-parsed according to the normal rules of
psql, where the whole buffer is treated as
- a single line. (Thus you cannot make scripts
this way,
- use \i for that.) This means also that
+ a single line. (Thus you cannot make scripts this way.
+ Use \i for that.) This means also that
if the query ends with (or rather contains) a semicolon, it is immediately
executed. In other cases it will merely wait in the query buffer.
- Sets the field separator for unaligned query output. The default is |
- (a pipe
symbol). See also \pset for a generic way
+ Sets the field separator for unaligned query output. The default is
+pipe (|). See also \pset for a generic way
of setting output options.
As of version 7.0,
psql automatically issues a
password prompt whenever the backend requests password authentication.
- Because this is currently based on a hack
, the automatic
+ Because this is currently based on a hack, the automatic
recognition might mysteriously fail, hence this option to force a prompt.
If no password prompt is issued and the backend requires password authentication
the connection attempt will fail.
The first example shows how to spread a query over several lines of input.
- Notice the changing prompt.
+ Notice the changing prompt:
testdb=> CREATE TABLE my_table (
testdb(> first integer not null default 0,
Notice how the int4 colums in right aligned while the text column in left aligned.
You can make this table look differently by using the \pset
- command.
+ command:
peter@localhost testdb=> \pset border 2
Border style is 2.