Re: creating "user" table - Mailing list pgsql-general

From Chris
Subject Re: creating "user" table
Date
Msg-id 4.3.2.7.2.20010923222617.00ad87d0@pop.iprimus.com.au
Whole thread Raw
In response to Re: creating "user" table  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general

> > I meant only be able to create users when you're connected to the
> template1 db.
> >
> > so
> > test=# create user x;
> >
> > wouldn't work, since you're not using template1.
> >
> > that way the user keyword would be free to use as a table name.
>
>But the parser is fixed at compile time and doesn't change depending on
>the database you're connected to.

Fair enough. There goes that idea then.

Could the parser do a different regex for the word user depending on syntax?

Just throwing around some (probably stupid) ideas, I have no idea on how
difficult / worthwhile this would actually be.

Chris.


pgsql-general by date:

Previous
From: "Piotr Sroczynski"
Date:
Subject: Is it possible to stop the trigger execution for a moment?
Next
From: Jochem van Dieten
Date:
Subject: Re: creating "user" table