Some newbie question - Mailing list pgsql-general

From Ritesh Nadhani
Subject Some newbie question
Date
Msg-id [email protected]
Whole thread Raw
Responses Re: Some newbie question
Re: Some newbie question
List pgsql-general
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?

Ritesh

pgsql-general by date:

Previous
From: Maurice Yarrow
Date:
Subject: Latest /etc/rc.d/init.d/postgresql startup/shutdown script
Next
From: Tom Lane
Date:
Subject: Re: Latest /etc/rc.d/init.d/postgresql startup/shutdown script