pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew T. O'Connor <matthew@zeut.net>
To: mail@joeconway.com
Cc: matthew@zeut.net
Cc: tgl@sss.pgh.pa.us
Cc: pgsql-hackers@postgresql.org
Cc: josh@agliodbs.com
Subject: Re: [PERFORM] rapid degradation after postmaster restart
Date: Tue, 16 Mar 2004 10:50:06 -0500 (EST)
Message-ID: <12158.192.154.91.225.1079452206.squirrel@matth.zeut.net> (raw)
In-Reply-To: <4056A8A7.4060208@joeconway.com>
References: <4052661D.5060505@joeconway.com>
	<14884.1079150555@sss.pgh.pa.us>
	<4055F343.6070600@joeconway.com>
	<405614CA.5030101@zeut.net>
	<405689A4.4080406@joeconway.com>
	<4056916B.5090204@zeut.net>
	<4056A8A7.4060208@joeconway.com>

> [moving to hackers]
>
> Line 681 is this:
>    sprintf(logbuffer, "dbname: %s Username %s Passwd %s",
>                        dbi->dbname, dbi->username, dbi->password);
>
> It appears that dbi->password is a null pointer:
> (gdb) print dbi->dbname
> $1 = 0x25f68 "template1"
> (gdb) print dbi->username
> $2 = 0x25b20 "dba"
> (gdb) print dbi->password
> $3 = 0x0
>
> Problem is, since this is a development machine, they have everything
> set to "trust" in pg_hba.conf. I added a "-P foo" to the command line,
> and it starts up fine now.

Ok, that is about what I figured the problem would be.  I will try to take
a look at this soon and submit a patch.  However since you can work around
it now, can you do another test run with -d2?

Thanks for tracking this down.

Matthew






view thread (26+ messages)  latest in thread

Message-ID: <12158.192.154.91.225.1079452206.squirrel@matth.zeut.net>
Permalink:  ../12158.192.154.91.225.1079452206.squirrel@matth.zeut.net/
Also on:    postgresql.org/message-id/12158.192.154.91.225.1079452206.squirrel@matth.zeut.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: matthew@zeut.net, mail@joeconway.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org, josh@agliodbs.com
  Subject: Re: [PERFORM] rapid degradation after postmaster restart
  In-Reply-To: <12158.192.154.91.225.1079452206.squirrel@matth.zeut.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox