[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: [GENERAL] Naming convention of implicit sequences ?
From: Nicolas Bouthors <nbouthors () ghs ! fr>
Date: 2002-01-23 13:17:51
[Download RAW message or body]
Hi,
In PG, identifiers are limited to 32chars if I'm not mistaken, so when
you create a table with a relatively long name, containing a public
key (with a long name too), a sequence is (implicitly) created to store
the pkey.
My question is : how to predict the exact name of this sequence knowing
the name of the table and the name of the pkey ?
I guess there is in the code somewhere a sprintf("%xf_%yf_seq",
table_name, key_name) with x and y beeing integers. If that's so what
are values of x and y ?
Thanks,
Nico
--
nicolas@bouthors.org -- http://nicolas.bouthors.org/ -- +33 6 2071 6234
Administateur Systèmes et Réseaux -- GHS -- 38, Rue du Texel
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic