pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Re: [SQL] SQL Things 3+ messages / 3 participants [nested] [flat]
* Re: [SQL] SQL Things @ 2000-01-21 23:50 De Moudt Walter <wdemoudt@planetinternet.be> parent: Neil Cameron <n.cameron@blueice.co.uk> 1 sibling, 0 replies; 3+ messages in thread From: De Moudt Walter @ 2000-01-21 23:50 UTC (permalink / raw) To: Neil Cameron <n.cameron@blueice.co.uk>; +Cc: pgsql-sql Neil, You can grant/revoke rights users have with the grant or revoke command: > GRANT select, insert, delete, update ON table_name TO user1, user2,.. > REVOKE create FROM user1 The first example grants the rights to view and update tables to user1 and user2, while the second example tells that user1 is not allowed to create a table. How to change the default behaviour, i don't know at first glance. This is basic SQL. Hope it helps, De Moudt Walter > Neil Cameron wrote: > > Hi > > Two questions. > > 1. How can I change a database object's owner using SQL type commands > ? > 2. Users seem by default to be able to create tables. Is this correct. > If so how can we remove this right. > > Neil@blueice ^ permalink raw reply [nested|flat] 3+ messages in thread
* SQL Things @ 2000-01-22 01:14 Neil Cameron <n.cameron@blueice.co.uk> 0 siblings, 2 replies; 3+ messages in thread From: Neil Cameron @ 2000-01-22 01:14 UTC (permalink / raw) To: pgsql-sql Hi Two questions. 1. How can I change a database object's owner using SQL type commands ? 2. Users seem by default to be able to create tables. Is this correct. If so how can we remove this right. Neil@blueice ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [SQL] SQL Things @ 2000-01-23 01:29 Peter Eisentraut <peter_e@gmx.net> parent: Neil Cameron <n.cameron@blueice.co.uk> 1 sibling, 0 replies; 3+ messages in thread From: Peter Eisentraut @ 2000-01-23 01:29 UTC (permalink / raw) To: Neil Cameron <n.cameron@blueice.co.uk>; +Cc: pgsql-sql On 2000-01-21, Neil Cameron mentioned: > 1. How can I change a database object's owner using SQL type commands ? With update. For example: UPDATE pg_class SET relowner = <userid> WHERE relname = 'my_table'; > 2. Users seem by default to be able to create tables. Is this correct. > If so how can we remove this right. Yes and you can't. -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2000-01-23 01:29 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2000-01-22 01:14 SQL Things Neil Cameron <n.cameron@blueice.co.uk> 2000-01-21 23:50 ` De Moudt Walter <wdemoudt@planetinternet.be> 2000-01-23 01:29 ` Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox