Re: pg_dump 9.1.1 hanging (collectSecLabels gets 0 labels)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steve Singer <ssinger(at)ca(dot)afilias(dot)info>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_dump 9.1.1 hanging (collectSecLabels gets 0 labels)
Date: 2011-11-10 19:00:33
Message-ID: 12021.1320951633@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Steve Singer <ssinger(at)ca(dot)afilias(dot)info> writes:
> The man page for malloc on AIX is pretty clear on what happens when you
> try to malloc 0 bytes. It returns NULL.

Yes, that's a pretty common behavior for malloc(0). It should not cause
a problem here AFAICS.

... Oh, I see, the problem is that &labels[-1] might not compare to
&labels[0] the way we want. I think only the first hunk of your
patch is actually necessary.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2011-11-10 19:17:00 Re: IDLE in transaction introspection
Previous Message Tom Lane 2011-11-10 18:55:59 Re: IDLE in transaction introspection