Re: pg_dump: Attempt to lock table "contexthelp" failed.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zengfa Gao <zfgao(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump: Attempt to lock table "contexthelp" failed.
Date: 2003-01-27 21:56:58
Message-ID: 8401.1043704618@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Zengfa Gao <zfgao(at)yahoo(dot)com> writes:
> On one system, PgSQL 7.2.1 is running on Redhat 7.3
> system. On another system, I run following script:

> !/bin/sh
> export PGPASSWORD=ZVCfH6sFtHW
> pg_dump -h pgql_hostname -U myuser mydatabase >
> mydumpfile

> I got following errors:

> pg_dump: Attempt to lock table "contexthelp" failed.
> ERROR: LOCK TABLE: permission denied
^^^^^^^^^^^^^^^^^

> This script works fine if I change pgsql_hostname to
> localhost.

Evidently "myuser" is a superuser locally, but not on the remote system.
Or the tables have different ownership on the two systems.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-01-27 22:04:54 Re: 7.3 LOCK TABLE problem
Previous Message Medi Montaseri 2003-01-27 21:39:34 Re: When to Vacuum