You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
postgres/contrib/pg_controldata
Peter Eisentraut 2a398726e7 Doesn't need libpq. 26 years ago
..
Makefile Doesn't need libpq. 26 years ago
README.pg_controldata I had a need to read such things as the backend locale and the catalog 26 years ago
pg_controldata.c I had a need to read such things as the backend locale and the catalog 26 years ago

README.pg_controldata

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>