| From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
|---|---|
| To: | "j(dot)random(dot)programmer" <javadesigner(at)yahoo(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Postgresql -- initial impressions and comments |
| Date: | 2002-12-03 21:19:01 |
| Message-ID: | 20021203211901.GA15415@wolff.to |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Mon, Dec 02, 2002 at 18:44:03 -0800,
"j.random.programmer" <javadesigner(at)yahoo(dot)com> wrote:
>
> 4) The auto-increment ("serial") fields are very
> badly documented.
>
> Normally, I want to say something like:
>
> INSERT into foo values (null, 'a', 'b',...)
>
> where the first field is defined as serial. However
> I can't send null to that field and expect it to be
> auto incremented - I have to either list out my
> fields in the statment (and omit the serial field):
Use the keyword DEFAULT instead of NULL.
> 5) There is no way to grant permissions on all tables
> within a database to some user. You have to grant
> permissions on each table one-by-one. What I want
> to do (and mysql allows this) is something like:
>
> GRANT ALL on foodb.* to user_bar;
You can get the list of tables from the system catalog and then issue
grant statements for them. You could write a function to do this,
do it in an application or write sql query output to a script which
you then execute.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruno Wolff III | 2002-12-03 21:21:31 | Re: getting query result into a file |
| Previous Message | Marc G. Fournier | 2002-12-03 21:18:38 | Re: [GENERAL] PostgreSQL Global Development Group Announces |