Re: [HACKERS] Bug? - Mailing list pgsql-sql

From Richard Broersma Jr
Subject Re: [HACKERS] Bug?
Date
Msg-id 20061021152555.78840.qmail@web31805.mail.mud.yahoo.com
Whole thread Raw
In response to Re: [HACKERS] Bug?  ("Indira Muthuswamy" <indumuthu@gmail.com>)
List pgsql-sql
> Then how do we clear the values of a serial column(is it done only by
> dropping the column?)?

If you look at the following link, you will see that serial is not really a true data-type.  It is
merely a short-cut to get the desired results:

http://www.postgresql.org/docs/8.1/interactive/datatype.html#DATATYPE-SERIAL

Also, if you are interested in resetting your columns "serial" value back to 1 or 0 or -10000, you
can do it using the setval() function for the following link:

http://www.postgresql.org/docs/8.1/interactive/functions-sequence.html

Regards,

Richard Broersma Jr.




pgsql-sql by date:

Previous
From: Richard Broersma Jr
Date:
Subject: Re: conversion of numeric field from MSSQL to postgres
Next
From: Devrim GUNDUZ
Date:
Subject: Re: Can we convert from Postgres to Oracle !!???