Re: find the template of a database in SQL

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Walter Cruz <walter(dot)php(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: find the template of a database in SQL
Date: 2006-08-18 16:17:56
Message-ID: 44E5E834.5030303@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Walter Cruz wrote:
> well, when I create a database, it inherits from template1
>
> When I have a table that I don't know if it inherits from template 1,
> how can I find the 'super' ?
I do not believe that tables have templates in 7.4 unless you specifically
use a query like:

create table foo as select * from bar;

Joshua D. Drake

>
> []'s
> - Walter
> On 8/18/06, Joshua D. Drake <jd(at)commandprompt(dot)com> wrote:
>> Walter Cruz wrote:
>> > Hi all..
>> >
>> > There's some way to find the template of a database in SQL (using
>> 7.4)?
>> Find the template? Could you clarify your question?
>>
>> >
>> > []'s
>> > - Walter
>> >
>> > ---------------------------(end of
>> broadcast)---------------------------
>> > TIP 1: if posting/reading through Usenet, please send an appropriate
>> > subscribe-nomail command to majordomo(at)postgresql(dot)org so that
>> your
>> > message can get through to the mailing list cleanly
>> >
>>
>>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-08-18 16:22:08 Re: find the template of a database in SQL
Previous Message Walter Cruz 2006-08-18 16:12:03 Re: find the template of a database in SQL