Unix Technical Forum

Re: Change owner of all database objects

This is a discussion on Re: Change owner of all database objects within the Pgsql General forums, part of the PostgreSQL category; --> i use this : CREATE TABLE UnstructuredContent ( imageId int8, content OID ); for importing image : insert into ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 07:55 AM
FERREIRA, William
 
Posts: n/a
Default Re: Change owner of all database objects


i use this :
CREATE TABLE UnstructuredContent
(
imageId int8,
content OID
);

for importing image : insert into UnstructuredContent values(1, lo_import('image_path'))
for exporting it's the "lo_export" function

see : http://www.postgresql.org/docs/8.1/i.../lo-funcs.html

-----Message d'origine-----
De : pgsql-general-owner@postgresql.org
[mailtogsql-general-owner@postgresql.org]De la part de John DeSoi
Envoyé : mercredi 18 janvier 2006 15:43
À : Richard Huxton
Cc : Andrus; pgsql-general@postgresql.org
Objet : Re: [GENERAL] Change owner of all database objects




On Jan 18, 2006, at 4:02 AM, Richard Huxton wrote:

> Andrus wrote:
>> Currently all my database objects are owned by superuser postgres .
>> I need to change owner to a nonprivileged role for all objects in
>> a database.
>> I'm using Postgres 8.1 server and client in Windows XP, only
>> plpSQL language installed in server.

>
> Search the mailing list archives. I seem to remember solutions
> involving shell and perl (and you could install perl if you wanted)
> but I think also something in plpgsql.



You can find some plpgsql functions here:

http://pgedit.com/tip/postgresql/acc...trol_functions


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

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 12:49 AM.


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