Re: cannot do backup - locked? - Mailing list pgsql-novice

From Lonni J Friedman
Subject Re: cannot do backup - locked?
Date
Msg-id CAP=oouG5xYxFZky-8y_w9+q_ZhD1FDm_i7i3FSNfKPVXcyhRTA@mail.gmail.com
Whole thread Raw
In response to cannot do backup - locked?  (Anne Wainwright <anotheranne@fables.co.za>)
Responses Re: cannot do backup - locked?  (Anne Wainwright <anotheranne@fables.co.za>)
List pgsql-novice
This looks potentially appropriate:
http://www.postgresql.org/message-id/349.1146881338@sss.pgh.pa.us
http://stackoverflow.com/questions/4363697/copy-a-postgres-database-without-lock-permissions

Neither of your commands specify a username to connect as. I'd suggest
using the -U option with a user who can access the database in
question.

On Sun, Sep 15, 2013 at 5:03 PM, Anne Wainwright
<anotheranne@fables.co.za> wrote:
> Hi
>
> I have previously done my backups in these ways, but now we get 'locked'
> messages.
>
> pandora@jason:~$  pg_dump -C -f fables_back_20130916.sql Fables
> pg_dump: SQL command failed
> pg_dump: Error message from server: ERROR:  permission denied for
> relation books
> pg_dump: The command was: LOCK TABLE public.books IN ACCESS SHARE MODE
>
>
>
> pandora@jason:~$ pg_dump -a  -f fables_data_20130916.sql Fables
> pg_dump: SQL command failed
> pg_dump: Error message from server: ERROR:  permission denied for
> relation books
> pg_dump: The command was: LOCK TABLE public.books IN ACCESS SHARE MODE
>
> (this second command used a -d flag, but this looks like it has been
> changed to --inserts ??
>
> whatever, what is happening here? I clearly have files created by these
> commands, but dated a long time back, in the postgres user account.
>
> Anne
>
>
> --
> Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama@gmail.com
LlamaLand                       https://netllama.linux-sxs.org


pgsql-novice by date:

Previous
From: Anne Wainwright
Date:
Subject: cannot do backup - locked?
Next
From: vinayak
Date:
Subject: Re: sorting of a price field