Re: Support retrieving value from any sequence

From: Thom Brown <thom(at)linux(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Support retrieving value from any sequence
Date: 2015-07-14 15:05:00
Message-ID: CAA-aLv71jt6uqvX4Y-DUkWjcOLf2yvsjdpGs-=aMkhwW-hzNcg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 14 July 2015 at 16:02, David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
wrote:

> On Tue, Jul 14, 2015 at 10:52 AM, Thom Brown <thom(at)linux(dot)com> wrote:
>
>> The use-case I have in mind is for finding out how close to the 32-bit
>> integer limit sequences have reached. At the moment, this isn't possible
>> without creating a custom function to go fetch the last_value from the
>> specified sequence.
>>
>>
> ​Why wouldn't you just query the catalog?​ I was under the impression
> last said values were extra-transactional so that table should reflect the
> global state.
>
> What am I missing here?
>

Where in the catalog do you mean?

Thom

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-07-14 15:22:26 Re: WIP: Enhanced ALTER OPERATOR
Previous Message David G. Johnston 2015-07-14 15:02:01 Re: Support retrieving value from any sequence