On Mon, Mar 17, 2003 at 17:35:10 +0800, Jinqiang Han <postgresql@db.pku.edu.cn> wrote:
> Hi, all hackers,
> I can startup database using command "/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data".
> But when I debug it using gdb and set args -D /usr/local/pgsql/data, it can't startup database. it says;
> FATAL: Database "postgres" does not exist in the system catalog.
>
> Is there any difference between them?
I think postmaster checks what its name is (from argv[0]) and runs differently
depending on what it is. If there is an option to gdb to set arg 0, try using
it to set it to postmaster.