Skip site navigation (1) Skip section navigation (2)

How to get tabloid

From: Terry Lee Tucker <terry(at)esc1(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: How to get tabloid
Date: 2005-09-30 10:25:05
Message-ID: 200509300625.05353.terry@esc1.com (view raw or flat)
Thread:
Lists: pgsql-novice
List,

I have a temporary table and I need to get the tableoid from the interface. 
The table may not have any data in it so something like SELECT tableoid FROM 
tmp_table LIMIT 1, returns zero when there is no data in the table. I know 
that you can get information like this from the system catalogs but don't 
know how to join them to accomplish this. Is there a diagram available which 
shows the system catalog relationships and does anyone have a simple sql 
string that will give me the tableoid of a given table.

TIA

-- 

Responses

pgsql-novice by date

Next:From: Terry Lee TuckerDate: 2005-09-30 10:53:25
Subject: Re: How to get tabloid
Previous:From: Greg Sabino MullaneDate: 2005-09-30 00:34:45
Subject: Re: perl DBI::Pg metacharacter \i com_list.sql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group