dbTalk Databases Forums  

[BUGS] BUG #2773: Problem pg_get_serial_sequence

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2773: Problem pg_get_serial_sequence in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Amelio
 
Posts: n/a

Default [BUGS] BUG #2773: Problem pg_get_serial_sequence - 11-21-2006 , 01:34 PM







The following bug has been logged online:

Bug reference: 2773
Logged by: Amelio
Email address: ameliocf (AT) yahoo (DOT) com.br
PostgreSQL version: 8.2 beta 2
Operating system: Windows XP
Description: Problem pg_get_serial_sequence
Details:

The pg_get_serial_sequence function is returning the name of the index on
the referenced column.

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote
  #2  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: [BUGS] BUG #2773: Problem pg_get_serial_sequence - 11-21-2006 , 02:16 PM






Amelio wrote:
Quote:
The following bug has been logged online:

Bug reference: 2773
Logged by: Amelio
Email address: ameliocf (AT) yahoo (DOT) com.br
PostgreSQL version: 8.2 beta 2
Operating system: Windows XP
Description: Problem pg_get_serial_sequence
Details:

The pg_get_serial_sequence function is returning the name of the index on
the referenced column.
Can you provide a reproducible test case? It looks OK to me:

test=> CREATE TABLE test (x SERIAL);
NOTICE: CREATE TABLE will create implicit sequence "test_x_seq" for
serial column "test.x"
CREATE TABLE

test=> SELECT pg_get_serial_sequence('test', 'x');
pg_get_serial_sequence
------------------------
public.test_x_seq
(1 row)

test=> CREATE INDEX i_test ON test(x);
CREATE INDEX

test=> SELECT pg_get_serial_sequence('test', 'x');
pg_get_serial_sequence
------------------------
public.test_x_seq
(1 row)

--
Bruce Momjian bruce (AT) momjian (DOT) us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


Reply With Quote
  #3  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2773: Problem pg_get_serial_sequence - 11-21-2006 , 02:31 PM



Bruce Momjian <bruce (AT) momjian (DOT) us> writes:
Quote:
Amelio wrote:
The pg_get_serial_sequence function is returning the name of the index on
the referenced column.

Can you provide a reproducible test case? It looks OK to me:
That's because it's been fixed...
http://archives.postgresql.org/pgsql...1/msg00074.php

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


Reply With Quote
  #4  
Old   
Stefan Kaltenbrunner
 
Posts: n/a

Default Re: [BUGS] BUG #2773: Problem pg_get_serial_sequence - 11-21-2006 , 02:31 PM



Amelio wrote:
Quote:
The following bug has been logged online:

Bug reference: 2773
Logged by: Amelio
Email address: ameliocf (AT) yahoo (DOT) com.br
PostgreSQL version: 8.2 beta 2
Operating system: Windows XP
Description: Problem pg_get_serial_sequence
Details:

The pg_get_serial_sequence function is returning the name of the index on
the referenced column.
Thanks for the report but this is is already fixed in the current codebase:

http://archives.postgresql.org/pgsql...1/msg00074.php


Stefan

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.