Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Pgadmin Support > Re: For the PG ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 2051 of 2164
Post > Topic >>

Re: For the PG experts

by julius@[EMAIL PROTECTED] (Julius Tuskenis) Jun 16, 2008 at 04:34 PM

Hi Laurent.

As I understand where is no direct link between sequence and the table 
column. You should see pg_attrdef table.
Query SELECT  pg_get_expr(adbin,adrelid)  FROM pg_attrdef; will return 
you all default values of the columns. Among them you will find 
nextval('your_sequence'::regclass).

Hope that helps...



Laurent ROCHE rašė:
> Hi,
>
> I have posted this on the pg main list ... and as I had no sensible 
> answers, I am trying here.
> Also, it's likely someone knows the answer as you need to get this 
> info to display it in pgAdmin !
>
> I would like to write a request where I would get the table name and 
> column name of a sequence. I have been looking at the sytem table and 
> could not link the sequence from pg_class to a table (and even less to 
> a column).
>
> Any ideas ?
>  
> Have fun,
> L@[EMAIL PROTECTED]
> The Computing Froggy
>
>
>
> ------------------------------------------------------------------------
> Envoyé avec Yahoo! Mail 
>
<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html>.
> Une boite mail plus intelligente. 


-- 
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050


-- 
Sent via pgadmin-sup****t mailing list (pgadmin-sup****t@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-sup****t
 




 3 Posts in Topic:
For the PG experts
laurent_roche@[EMAIL PROT  2008-06-16 05:36:27 
Re: For the PG experts
julius@[EMAIL PROTECTED]   2008-06-16 16:34:20 
Re: For the PG experts
Erwin Brandstetter <br  2008-06-28 08:50:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 4:01:34 CST 2008.