X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8C6DE11F66E9 for ; Wed, 29 Mar 2006 18:13:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44019-09 for ; Wed, 29 Mar 2006 18:13:54 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 21A4F11F66CE for ; Wed, 29 Mar 2006 18:13:53 -0400 (AST) Received: from mail.jobflash.com (mail.jobflash.com [64.62.211.41]) by svr4.postgresql.org (Postfix) with ESMTP id B3FC85AF8AB for ; Wed, 29 Mar 2006 22:13:53 +0000 (GMT) Received: from [192.168.1.64] (adsl-68-125-161-245.dsl.pltn13.pacbell.net [68.125.161.245]) by mail.jobflash.com (Postfix) with ESMTP id B0CC042002 for ; Wed, 29 Mar 2006 14:13:50 -0800 (PST) Message-ID: <442B069C.3050203@jobflash.com> Date: Wed, 29 Mar 2006 14:13:48 -0800 From: Tom Arthurs User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Where does meta-data come from? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200603/141 X-Sequence-Number: 14922 We are running into a strange problem -- one of our developers is extracting meta-data from our data base, and is seeing a difference in the data that is being returned. Columns typed as int or int4 are returning smallint from the meta-data information through jdbc, but if we go in and look at the tables through \d in the command line client, it is correctly typed as int. This started happening after we upgraded to 8.1.3 and after issuing alter table commands to create primary keys. (one data base was fine after the upgrade -- yesterday, but today, after creation of primary keys, is now giving us the wrong int type). I'd like to know where jdbc is getting this information, so I can try to track down the cause. TIA.