Re: tablespace_oid alias?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thalis Kalfigkopoulos <tkalfigo(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: tablespace_oid alias?
Date: 2012-10-12 23:00:57
Message-ID: 24770.1350082857@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thalis Kalfigkopoulos <tkalfigo(at)gmail(dot)com> writes:
> Which would be the OID alias type for tablespace_oid?

There is none. Use "select oid from pg_tablespace where spcname =
'whatever'". (In general, OID alias types only get invented for
object types where the lookup rules are more complicated than that,
eg where you have schema qualification or arguments to think about.)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vishalakshi Navaneethakrishnan 2012-10-13 04:52:05 Re: Postgres DB Migration from 8.3 to 9.1
Previous Message Scott Marlowe 2012-10-12 22:07:09 Re: Postgres DB Migration from 8.3 to 9.1