Re: [SQL] Full access to a DB with a second user?

2004-09-05 Thread Oliver Elphick
On Sun, 2004-09-05 at 13:53, Erik Wasser wrote: > Hello [EMAIL PROTECTED], > > how can I gave a user full access (SELECT, INSERT,...) to a database > that he doesn't own? I used google to find a solution and I find a > Statement[1] that will the do the trick. But it looks very cryptical to > me

Re: [SQL] INFORMATION_SCHEMA and foreign keys

2004-09-05 Thread Tom Lane
Stephan Szabo <[EMAIL PROTECTED]> writes: > On Mon, 6 Sep 2004, Troels Arvin wrote: >> Is my only way forward to drop using the INFORMATION_SCHEMA and work with >> the pg_catalog if I want to determine which columns are being referred to >> in a (set of) foreign key column(s)? > Possibly, yes. Yo

Re: [SQL] INFORMATION_SCHEMA and foreign keys

2004-09-05 Thread Stephan Szabo
On Mon, 6 Sep 2004, Troels Arvin wrote: > The query returns double the numer of rows, compared to what I wanted. The > problem seems to stem from PostgreSQL's naming of constraints without > explicit name: They seem to be named $1, $2, etc, and the default names > are reused. [...] > Note, again,

[SQL] INFORMATION_SCHEMA and foreign keys

2004-09-05 Thread Troels Arvin
Hello, For a table with a foreign key, I need to find out which columns are being referred to in the foreing key. Example setup: Create two ("master") tables, and two ("slave") tables which refer to a master table: CREATE TABLE MASTER_A ( fullname VARCHAR(50) NOT NULL, birthday TIMESTAMP NOT

Re: [SQL] Storing properties in a logical way.

2004-09-05 Thread =?iso-8859-15?Q?Pierre-Fr=E9d=E9ric_Caillaud?=
But after looking closely at the list of a possible properties, i found out that some of them depend on others. For example, if item is a PDF document, it can have an index. But a document can also have an index with links. Logically, a properties like 'index with links' don't belong to the verific

[SQL] Storing properties in a logical way.

2004-09-05 Thread Daniel M.
Hello everybody, In a database there is a table with items, and each item can have 0 to n properties. The objective is to store information about items' properties in a mentioned database in a logical and an efficient way. Usually it is easily done by creating a validation table with a list of poss

[SQL] Full access to a DB with a second user?

2004-09-05 Thread Erik Wasser
Hello [EMAIL PROTECTED], how can I gave a user full access (SELECT, INSERT,...) to a database that he doesn't own? I used google to find a solution and I find a Statement[1] that will the do the trick. But it looks very cryptical to me. B-) What does this statement do? > \a > \t > \o /tmp/gran