pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: salamsp@gmail.com
Subject: BUG #17298: Error in func pg_get_serial_sequence()
Date: Thu, 25 Nov 2021 17:53:34 +0000
Message-ID: <17298-37b47e413b975a9b@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17298
Logged by:          Serge Salamatin
Email address:      salamsp@gmail.com
PostgreSQL version: 13.5
Operating system:   Ubuntu 13.5-2.pgdg20.04+1
Description:        

CREATE SEQUENCE IF NOT EXISTS tnd.ui_seq
    INCREMENT 1
    START 1
    MINVALUE 1
    MAXVALUE 9223372036854775807
    CACHE 1;

CREATE TABLE IF NOT EXISTS tnd.xdwdef
(
    defnm citext COLLATE pg_catalog."default" NOT NULL,
    ui_id bigint NOT NULL DEFAULT nextval('tnd.ui_seq'::regclass),
    def citext COLLATE pg_catalog."default",
    CONSTRAINT defnm_pk PRIMARY KEY (defnm)
)

;
select pg_get_serial_sequence('tnd.xdwdef','ui_id');

returns null



view thread (2+ messages)  latest in thread

Message-ID: <17298-37b47e413b975a9b@postgresql.org>
Permalink:  ../17298-37b47e413b975a9b@postgresql.org/
Also on:    postgresql.org/message-id/17298-37b47e413b975a9b@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, salamsp@gmail.com
  Subject: Re: BUG #17298: Error in func pg_get_serial_sequence()
  In-Reply-To: <17298-37b47e413b975a9b@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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