X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E86DA329DD1 for ; Wed, 22 Sep 2004 20:12:23 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98530-01 for ; Wed, 22 Sep 2004 19:12:16 +0000 (GMT) Received: from smtp8.poczta.onet.pl (smtp8.poczta.onet.pl [213.180.130.48]) by svr1.postgresql.org (Postfix) with ESMTP id E52A4329D14 for ; Wed, 22 Sep 2004 20:12:16 +0100 (BST) Received: from bj210.internetdsl.tpnet.pl ([80.53.193.210]:37830 "EHLO pyszny-j.rydnet") by ps8.test.onet.pl with ESMTP id ; Wed, 22 Sep 2004 21:11:13 +0200 Subject: Re: Auto-increment serial (Postgresql JDBC driver w/ From: "Jaroslaw J. Pyszny" To: pg@fastcrypt.com Cc: pgsql-jdbc In-Reply-To: <1095807031.1556.129.camel@localhost.localdomain> References: <1095725344.10857.107.camel@lx.siec> <1095794747.18680.23.camel@lx.siec> <1095798675.1557.122.camel@localhost.localdomain> <1095807031.1556.129.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-2 Message-Id: <1095880271.22986.37.camel@lx.siec> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 (1.4.3-9.1.aur.2) Date: 22 Sep 2004 21:11:12 +0200 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/150 X-Sequence-Number: 11040 W liście z sro, 22-09-2004, godz. 00:50, Dave Cramer pisze: > Sorry, missed one more where clause. > > select column_default from information_schema.columns where table_name = > 'xyz' and column_name = 'id'; > > This assumes a table defined like create table xyz (id serial); It's works but only for the owner of the table or I do something wrong ;) Jarek -- 8 \\|||// Jarosław J. Pyszny b (o|o) Linux admin/devel ("Vitae,non scholae,discimus") i --\_/-- Linux user: #96704 (http://counter.li.org) t =->komputer(y) - daj znać jeśli chcesz się pozbyć <-=