Re: MySQL to Postgres question - Mailing list pgsql-general

From Tom Lane
Subject Re: MySQL to Postgres question
Date
Msg-id 26707.1206120056@sss.pgh.pa.us
Whole thread Raw
In response to Re: MySQL to Postgres question  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: MySQL to Postgres question  ("Adam Rich" <adam.r@sbcglobal.net>)
List pgsql-general
"Joshua D. Drake" <jd@commandprompt.com> writes:
>> Why????

> I am not sure about 8.3 but certainly earlier releases of PostgreSQL
> would have specific dependency issues when a sequence was applied to a
> a column after the fact, versus using the serial or bigserial
> psuedo-types.

As of (I think) 8.2, you can use ALTER SEQUENCE OWNED BY to manage
the dependency.  In earlier releases it's true that you couldn't
exactly duplicate what SERIAL did (at least not without manual
catalog hacking), but now it truly is just a macro for things you
can do with SQL commands.

            regards, tom lane

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Client-requested cast mode to emulate Pg8.2 on v8.3
Next
From: "John Smith"
Date:
Subject: Re: [postgis-users] how many min. floating-points?