From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Indira Muthuswamy <indumuthu(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Bug? |
Date: | 2006-10-18 13:31:54 |
Message-ID: | 45362CCA.8060000@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
Indira Muthuswamy wrote:
> Hai,
>
> I have encountered a problem with PostgreSQL.I have created a table
> 'tab1' with a column 'a' with serial type.I entered 20 records into
> the table.So the query
> select max(a) from tab1;
> returned 20.When I tried the same query after the command
> truncate table tab1;
> I found that the output of the first query as
>
> max
> -----
>
> (1 row)
>
> When I tried to insert a new row into the table tab1 I found that the
> value at column a incremented to the value 21.
> But I heard from my friends that the value of the serial column gets
> decremented whenever we issue the 'truncate table' command (in MS SQL
> SERVER).Is the concept same with PostgreSQL or not?Can anyone clarify
> me on this?
>
Sure. You heard wrong about postgres.
Please do not ask questions like this on the -hackers list - this should
have gone to pgsql-general. The hackers list is for postgresql
development discussions only.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Joseph Krogh | 2006-10-18 13:44:05 | Re: bug or feature, || -operator and NULLs |
Previous Message | Indira Muthuswamy | 2006-10-18 13:23:46 | Bug? |
From | Date | Subject | |
---|---|---|---|
Next Message | Andy | 2006-10-18 13:49:32 | plpgsql record as parameter ??? |
Previous Message | Indira Muthuswamy | 2006-10-18 13:23:46 | Bug? |