Re: [SQL] SQL Things

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Neil Cameron <n(dot)cameron(at)blueice(dot)co(dot)uk>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] SQL Things
Date: 2000-01-23 01:29:10
Message-ID: Pine.LNX.4.21.0001221739010.3007-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

  • SQL Things at 2000-01-22 01:14:27 from Neil Cameron

Browse pgsql-sql by date

  From Date Subject
Next Message Christopher Sawtell 2000-01-23 07:21:45 Re: [SQL] how many inserts in one transaction?
Previous Message The Hermit Hacker 2000-01-22 23:18:03 Re: [SQL] More efficient DELETE ... ?