How do i get DDL of a Table from system catalog ?

Поиск
Список
Период
Сортировка
От Potluri Srikanth
Тема How do i get DDL of a Table from system catalog ?
Дата
Msg-id 41734.1207749044@ismartpanache.com
обсуждение исходный текст
Ответы Re: How do i get DDL of a Table from system catalog ?
Re: How do i get DDL of a Table from system catalog ?
Список pgsql-admin
Hi,<br /><br /> How do i get DDL of a Table from system catalog ?<br /><br /> Purpose :<br /> 1) i need to create an
externaltable on the basis of  another table.<br />      create table ext_table (like table_name);
------------------>this doesnot work for external tables.<br /> 2)  so i need to query catalog to get  definition of
thetable.<br />      on the basis of this definition i can create external table .<br /> eg: i am looking for some
thinglike :<br /><br />    select * from pg_catalog where table_name='
srikanth_ext_parallel_crt_sms_logs_child_depth_1_d_2008_03_30_daily' ;<br /><br /> 3) once i get the definition of the
table, i need to use that definition for creation of external table in a script which will run in cron job daily for
dataloading.<br /><br /> Can anyone guide/help me in this ?<br /><br /><br /><br /> Regards, <br /> Srikanth k Potluri
<br/> +63 9177444783(philippines) <br /> 

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Mikko Partio"
Дата:
Сообщение: FATAL: could not open relation xxx: No such file or directory
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: Handling large volumes of data