Re: Have psql show current sequnce values - (Resubmission)

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Dhanaraj M <Dhanaraj(dot)M(at)Sun(dot)COM>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Have psql show current sequnce values - (Resubmission)
Date: 2007-02-09 01:29:22
Message-ID: 200702090129.l191TMp04151@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > I think we discussed replacing the current sequence representation with
> > a single relation that would contain all sequences in the database, so
> > that you could do "select * from pg_sequence" and get all the values in
> > one go. The idea was considered not implementable at the time due to us
> > not having "non transactional relations", but I'd suggest adding it to
> > the TODO so that we don't forget later.
>
> I wonder if we could kluge it by making all sequences inheritance
> children of a dummy "pg_sequence" relation. Or perhaps better,
> implement this as a system view on a set-returning function --- if there
> are lots of sequences the planner's not likely to help you much anyway.

I like the system view best.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-02-09 01:49:46 Re: Hierarchical Queries--Status
Previous Message Tom Lane 2007-02-09 01:15:53 Re: Have psql show current sequnce values - (Resubmission)

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2007-02-09 01:49:46 Re: Hierarchical Queries--Status
Previous Message Tom Lane 2007-02-09 01:15:53 Re: Have psql show current sequnce values - (Resubmission)