pg_dump 9.1.1 hanging (collectSecLabels gets 0 labels)

From: Steve Singer <ssinger(at)ca(dot)afilias(dot)info>
To: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: pg_dump 9.1.1 hanging (collectSecLabels gets 0 labels)
Date: 2011-11-09 22:59:59
Message-ID: 4EBB05EF.3000300@ca.afilias.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

We have a cluster running 9.1.1 where pg_dump hangs when we try to dump
some a database inside of the cluster. The server is running AIX.

I can see this on clean cluster where we do an initdb, followed by a
createdb and try running pg_dump.

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.

I am not yet sure if the problem is that my pg_seclabel is empty or if
the issue is in collectSecLabels() or if collectSecLabels shouldn't even
be called.

Has anyone seen something similar?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-11-09 23:10:24 Re: const correctness
Previous Message Daniel Farina 2011-11-09 22:53:41 Re: 9.1.2 ?