Re: Some newbie question

Поиск
Список
Период
Сортировка
Искать
От
Ritesh Nadhani
Тема
Re: Some newbie question
Дата
Msg-id
453812CE.5030700@gmail.com
Ответ на
Список
Дерево обсуждения
Some newbie question Ritesh Nadhani <riteshn@gmail.com>
Re: Some newbie question Jeff Davis <pgsql@j-davis.com>
Re: Some newbie question Ritesh Nadhani <riteshn@gmail.com>
Re: Some newbie question Jeff Davis <pgsql@j-davis.com>
Re: Some newbie question Shane Ambler <pgsql@007Marketing.com>
Thanks.

So the implicit value means that PG gave it a name?

Jeff Davis wrote:
> On Thu, 2006-10-19 at 18:32 -0500, Ritesh Nadhani wrote:
>> Hello
>>
>> Just trying to play around with PostgreSQL. Some commands and their 
>> result are:
>>
>> test=# create table ncbi ( id serial, title varchar(50), abstract text, 
>> primary key(id));
>> NOTICE:  CREATE TABLE will create implicit sequence "ncbi_id_seq" for 
>> serial column "ncbi.id"
>> NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index 
>> "ncbi_pkey" for table "ncbi"
>> CREATE TABLE
>> test=# drop table ncbi;
>> DROP TABLE
>> test=# create table ncbi ( id serial, title varchar(50), abstract text); 
>>
>> NOTICE:  CREATE TABLE will create implicit sequence "ncbi_id_seq" for 
>> serial column "ncbi.id"
>> CREATE TABLE
>>
>> ======
>>
>> q1) Does 'implicit index' means that they have given a default name to 
>> the PK which I defined in the first query since I didnt give a name or 
>> does it mean one another index is created apart from the PRIMARY KEY?
>>
> 
> It only creates one index, the primary key index.
> 
> Regards,
> 	Jeff Davis
> 
> 
> 
В списке pgsql-general по дате отправления
От: Jeff Davis
Дата:
Сообщение: Re: Some newbie question
От: Tom Lane
Дата:
FAQ