comments on casts

Started by Christopher Kings-Lynneabout 22 years ago5 messages
#1Christopher Kings-Lynne
chriskl@familyhealth.com.au

Hey guys,

Is it true to say that it's impossible for me to allow comments on
casts, as there is no OID on the pg_cast table?

Chris

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Christopher Kings-Lynne (#1)
Re: comments on casts

Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:

Is it true to say that it's impossible for me to allow comments on
casts, as there is no OID on the pg_cast table?

Eh?

regression=# select oid from pg_cast;
oid
-------
16420
16421
16422
16423
16424
... etc ...

It would be a very serious design error if pg_cast didn't have OIDs,
because then pg_cast entries couldn't have dependency entries in
pg_depend.

regards, tom lane

#3Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Tom Lane (#2)
Re: comments on casts

regression=# select oid from pg_cast;
oid
-------
16420
16421
16422
16423
16424
... etc ...

It would be a very serious design error if pg_cast didn't have OIDs,
because then pg_cast entries couldn't have dependency entries in
pg_depend.

OK. Weird. I could have _sworn_ I tried that and I didn't get an OID
column. Oh well - makes things a lot easier.

Also, with the pg_largeobject table, there seems to be no 'owner'
concept on lobs at all. So is there no problem with any random gumby
commenting on anyone else's large object?

Chris

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Christopher Kings-Lynne (#3)
Re: comments on casts

Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:

Also, with the pg_largeobject table, there seems to be no 'owner'
concept on lobs at all. So is there no problem with any random gumby
commenting on anyone else's large object?

We don't have a lot of choice. I suppose ideally LOs should have
owners, but I don't really want to put that much effort (and breakage of
existing apps, no doubt) into them.

regards, tom lane

#5Peter Eisentraut
peter_e@gmx.net
In reply to: Christopher Kings-Lynne (#3)
Re: comments on casts

Christopher Kings-Lynne writes:

Also, with the pg_largeobject table, there seems to be no 'owner'
concept on lobs at all. So is there no problem with any random gumby
commenting on anyone else's large object?

Not any worse that any random gumby reading or writing anyone else's large
object.

--
Peter Eisentraut peter_e@gmx.net