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 22911.1320881700@sss.pgh.pa.us
Whole thread Raw
In response to 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:
> I've tracked the issue down to collectSecLabels in pg_dump.c

> SELECT label, provider, classoid, objoid, objsbid FROM 
> pg_catalog.pg_seclabel;

> returns 0 rows.

> The code in collectSecLabels() is not prepared to deal with a zero row 
> result and tries to malloc 0 bytes.

pg_seclabel is almost always empty, so I'm not convinced that you've
identified your problem correctly.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: MPI programming in postgreSQL backend source code
Next
From: José Arthur Benetasso Villanova
Date:
Subject: Re: [patch] Include detailed information about a row failing a CHECK constraint into the error message