Re: more adequate usage msg: pg_controldata.diff

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Serguei Mokhov <mokhov(at)cs(dot)concordia(dot)ca>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: more adequate usage msg: pg_controldata.diff
Date: 2003-01-09 21:46:40
Message-ID: 200301092146.h09Lkev14036@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Peter Eisentraut wrote:
> Bruce Momjian writes:
>
> > Patch applied, with slight adjustment. New output is:
>
> I explained in my last message that this patch is wrong. Please revert
> it. (DATADIR is not an option and therefore it shouldn't be listed in the
> options list.)

I tried to subtely point out that it is optional. The C code is:

if (argc > 1)
DataDir = argv[1];
else
DataDir = getenv("PGDATA");
if (DataDir == NULL)
{
fprintf(stderr, _("%s: no data directory specified\n"), progname);
fprintf(stderr, _("Try '%s --help' for more information.\n"), progname);
exit(1);
}

and it does work without it:

$ pg_controldata
pg_control version number: 72
Catalog version number: 200212121
Database cluster state: in production
pg_control last modified: 01/09/03 07:34:11
Current log file ID: 0
Next log file segment: 3
Latest checkpoint location: 0/2294848
Prior checkpoint location: 0/8A9C60
Latest checkpoint's REDO location: 0/2294848
Latest checkpoint's UNDO location: 0/0
Latest checkpoint's StartUpID: 12
Latest checkpoint's NextXID: 6351
Latest checkpoint's NextOID: 156300
Time of latest checkpoint: 01/09/03 07:34:08
Database block size: 8192
Blocks per segment of large relation: 131072
Maximum length of identifiers: 64
Maximum number of function arguments: 32
Date/time type storage: Floating point
Maximum length of locale name: 128
LC_COLLATE: C
LC_CTYPE: C

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2003-01-09 21:48:15 Re: more adequate usage msg: pg_controldata.diff
Previous Message dev 2003-01-09 19:54:04 Re: insert rule doesn't see id field