mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-07 09:56:50 +02:00
b25e60d887
version number from the current database, and couldn't find any existing program to do that. linda:~$ pg_controldata Log file id: 0 Log file segment: 5 Last modified: Wed Feb 7 19:35:47 2001 Database block size: 8192 Blocks per segment of large relation: 131072 Catalog version number: 200101061 LC_COLLATE: en_GB LC_CTYPE: en_GB Log archive directory: Oliver Elphick Oliver.Elphick@lfix.co.uk
20 lines
692 B
Plaintext
20 lines
692 B
Plaintext
I had a need to read such things as the backend locale and the catalog
|
|
version number from the current database, and couldn't find any existing
|
|
program to do that.
|
|
|
|
The attached utility produces this output:
|
|
|
|
linda:~$ pg_controldata
|
|
Log file id: 0
|
|
Log file segment: 5
|
|
Last modified: Wed Feb 7 19:35:47 2001
|
|
Database block size: 8192
|
|
Blocks per segment of large relation: 131072
|
|
Catalog version number: 200101061
|
|
LC_COLLATE: en_GB
|
|
LC_CTYPE: en_GB
|
|
Log archive directory:
|
|
|
|
--
|
|
Oliver Elphick <olly@lfix.co.uk>
|