From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Mario Weilguni <mweilguni(at)sime(dot)com> |
Cc: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: restore improvement |
Date: | 2001-05-17 16:27:57 |
Message-ID: | Pine.LNX.4.30.0105171826090.757-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Mario Weilguni writes:
> pg_dump, (maybe started with a special flag) if run with superuser rights
> should not issue
>
> \connect - username
> create table foo (...
> copy foo from ...
> This would avoid situations where a restore becomes impossible because
> password authentication is necessary. This would allow restoring without
> having to set trust in pg_hba.conf. A patch would be simple, in fact I wrote
> it within a few minutes.
>
> Or am I completly wrong and there's a better way to accomplish this?
set session authentication 'username';
The command already exists in 7.2devel sources. Feel free to send a patch
to make pg_dump use it. Note that this command requires superuser rights,
so there needs to be an alternative.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
From | Date | Subject | |
---|---|---|---|
Next Message | Rod Taylor | 2001-05-17 16:43:49 | Re: Upgrade issue (again). |
Previous Message | August Zajonc | 2001-05-17 16:26:08 | Re: Need Postgresql ODBC Driver |