Re: pg_dump 9.1.1 hanging (collectSecLabels gets 0 labels) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_dump 9.1.1 hanging (collectSecLabels gets 0 labels)
Date
Msg-id 12021.1320951633@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_dump 9.1.1 hanging (collectSecLabels gets 0 labels)  (Steve Singer <ssinger@ca.afilias.info>)
Responses Re: pg_dump 9.1.1 hanging (collectSecLabels gets 0 labels)
List pgsql-hackers
Steve Singer <ssinger@ca.afilias.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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: IDLE in transaction introspection
Next
From: Tom Lane
Date:
Subject: Re: IDLE in transaction introspection