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-09 23:35:00
Message-ID: 22911.1320881700@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:
> 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

In response to

Responses

Browse pgsql-hackers by date

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