Unix Technical Forum

SET SESSION AUTHORIZATION permissions

This is a discussion on SET SESSION AUTHORIZATION permissions within the pgsql Admins forums, part of the PostgreSQL category; --> Hi all, I'm using PostgreSQL 7.4.7-6sarge2 (debian). Only superuser can issue the command SET SESSION AUTHORIZATION? Suppose this, I ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 07:34 AM
=?ISO-8859-1?Q?Lu=EDs_Sousa?=
 
Posts: n/a
Default SET SESSION AUTHORIZATION permissions

Hi all,

I'm using PostgreSQL 7.4.7-6sarge2 (debian).

Only superuser can issue the command SET SESSION AUTHORIZATION?
Suppose this, I have created all tables in one database with a
privileged user. On my ident config I putted that user so in interactive
session is so simple as \c - <privileged user> to connect with that user.
When I tried to dump and the restore on command line with my user, is
issued a SET SESSION AUTHORIZATION with a permission denied error!
Except running the script as superuser and giving superuser privileges
to my user, what can I do on command line so that SET SESSION
AUTHORIZATION doesn't fail?

Best regards,
Luís Sousa






---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 07:34 AM
Tom Lane
 
Posts: n/a
Default Re: SET SESSION AUTHORIZATION permissions

=?ISO-8859-1?Q?Lu=EDs_Sousa?= <llsousa@ualg.pt> writes:
> Only superuser can issue the command SET SESSION AUTHORIZATION?


Well, yeah.

> When I tried to dump and the restore on command line with my user, is
> issued a SET SESSION AUTHORIZATION with a permission denied error!


Use --no-owner if you want to make pg_dump output that won't generate
this error (and want all the restored objects to be owned by whoever
runs the script). Or just ignore the error messages.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com