From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>, Josh Berkus <josh(at)agliodbs(dot)com> |
Subject: | Re: [PERFORM] rapid degradation after postmaster restart |
Date: | 2004-03-16 07:11:35 |
Message-ID: | 4056A8A7.4060208@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
[moving to hackers]
Matthew T. O'Connor wrote:
> Good luck, I hope you can get permission. Would e nice to fix this
> little crash.
I went ahead and recompiled with --enable-debug, and get this trace:
#0 0xfefb3218 in strlen () from /usr/lib/libc.so.1
#1 0xff006520 in _doprnt () from /usr/lib/libc.so.1
#2 0xff0082e8 in sprintf () from /usr/lib/libc.so.1
#3 0x1213c in print_db_info (dbi=0x28980, print_tbl_list=0)
at pg_autovacuum.c:681
#4 0x120fc in print_db_list (db_list=0x25f80, print_table_lists=0)
at pg_autovacuum.c:673
#5 0x11b44 in init_db_list () at pg_autovacuum.c:416
#6 0x12c58 in main (argc=154384, argv=0xff043a54) at pg_autovacuum.c:1007
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.
HTH,
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Shachar Shemesh | 2004-03-16 07:43:48 | Re: tinyint and type problems |
Previous Message | Greg Stark | 2004-03-16 07:03:35 | Re: Reducing expression evaluation overhead |
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2004-03-16 07:31:06 | Re: atrocious update performance |
Previous Message | Joe Conway | 2004-03-16 05:48:05 | Re: rapid degradation after postmaster restart |