pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15601: ERRO TYPE SERIAL
3+ messages / 3 participants
[nested] [flat]
* BUG #15601: ERRO TYPE SERIAL
@ 2019-01-21 20:08 PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: PG Bug reporting form @ 2019-01-21 20:08 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: walteniobessa@gmail.com
The following bug has been logged on the website:
Bug reference: 15601
Logged by: Waltênio de Bessa Mendes
Email address: walteniobessa@gmail.com
PostgreSQL version: 11.1
Operating system: Win 10
Description:
ALTER TABLE documento ALTER COLUMN id_doc TYPE SERIAL;
ERROR: type "serial" does not exist
********** Error **********
ERROR: type "serial" does not exist
SQL state: 42704
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #15601: ERRO TYPE SERIAL
@ 2019-01-21 23:13 Jeff Janes <jeff.janes@gmail.com>
parent: PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Janes @ 2019-01-21 23:13 UTC (permalink / raw)
To: walteniobessa@gmail.com; pgsql-bugs@lists.postgresql.org
On Mon, Jan 21, 2019 at 4:26 PM PG Bug reporting form <
noreply@postgresql.org> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 15601
> Logged by: Waltênio de Bessa Mendes
> Email address: walteniobessa@gmail.com
> PostgreSQL version: 11.1
> Operating system: Win 10
> Description:
>
> ALTER TABLE documento ALTER COLUMN id_doc TYPE SERIAL;
>
> ERROR: type "serial" does not exist
> ********** Error **********
>
> ERROR: type "serial" does not exist
> SQL state: 42704
>
>
This isn't a bug.
According to the doc (
https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-SERIAL
):
The data types smallserial, serial and bigserial are not true types, but
merely a notational convenience for creating unique identifier columns
(similar to the AUTO_INCREMENT property supported by some other databases)
Further down, it tells you how to turn an existing column into that behaves
just as if you had created it with 'serial' in the first place.
Cheers,
Jeff
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #15601: ERRO TYPE SERIAL
@ 2019-01-21 23:29 Waltênio de Bessa Mendes <walteniobessa@gmail.com>
parent: Jeff Janes <jeff.janes@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Waltênio de Bessa Mendes @ 2019-01-21 23:29 UTC (permalink / raw)
To: Jeff Janes <jeff.janes@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org
Thanks, I'll check it out.
Em seg, 21 de jan de 2019 às 21:13, Jeff Janes <jeff.janes@gmail.com>
escreveu:
> On Mon, Jan 21, 2019 at 4:26 PM PG Bug reporting form <
> noreply@postgresql.org> wrote:
>
>> The following bug has been logged on the website:
>>
>> Bug reference: 15601
>> Logged by: Waltênio de Bessa Mendes
>> Email address: walteniobessa@gmail.com
>> PostgreSQL version: 11.1
>> Operating system: Win 10
>> Description:
>>
>> ALTER TABLE documento ALTER COLUMN id_doc TYPE SERIAL;
>>
>> ERROR: type "serial" does not exist
>> ********** Error **********
>>
>> ERROR: type "serial" does not exist
>> SQL state: 42704
>>
>>
> This isn't a bug.
>
> According to the doc (
> https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-SERIAL
> ):
>
> The data types smallserial, serial and bigserial are not true types, but
> merely a notational convenience for creating unique identifier columns
> (similar to the AUTO_INCREMENT property supported by some other databases)
>
> Further down, it tells you how to turn an existing column into that
> behaves just as if you had created it with 'serial' in the first place.
>
> Cheers,
>
> Jeff
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-01-21 23:29 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21 20:08 BUG #15601: ERRO TYPE SERIAL PG Bug reporting form <noreply@postgresql.org>
2019-01-21 23:13 ` Jeff Janes <jeff.janes@gmail.com>
2019-01-21 23:29 ` Waltênio de Bessa Mendes <walteniobessa@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox