From: John <johnf@jfcomputer.com>
To: pgsql-sql@postgresql.org
Subject: determine the curval() of a view
Date: Tue, 2 Mar 2010 07:35:42 -0800
Message-ID: <201003020735.42499.johnf@jfcomputer.com> (raw)
Hi,
I am working with a view that has a "_INSERT" rule. I'm wondering if there is
a way to determine what the curval() of the PK (serial type) after an insert
occurs.
Given the name of the view I'd like to determine the sequence associated with
the view's PK. Actually, I wonder if it is even possible to determine the PK
from the view name. I'm guessing that it might be possible because the view
must be associated with a table/s. And they will have PK's.
Any hints will be very helpful.
Johnf
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-sql@postgresql.org
Cc: johnf@jfcomputer.com
Subject: Re: determine the curval() of a view
In-Reply-To: <201003020735.42499.johnf@jfcomputer.com>
* 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