Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMYoW-0000q3-E9 for pgsql-jdbc@postgresql.org; Fri, 12 Oct 2012 06:33:40 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMYoU-0007Rk-Vt for pgsql-jdbc@postgresql.org; Fri, 12 Oct 2012 06:33:39 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TMYoV-0005Zb-JL for pgsql-jdbc@postgresql.org; Fri, 12 Oct 2012 08:33:39 +0200 Received: from 217.110.94.121 ([217.110.94.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Oct 2012 08:33:39 +0200 Received: from spam_eater by 217.110.94.121 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Oct 2012 08:33:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: bug report: slow getColumnTypeName Date: Fri, 12 Oct 2012 08:33:39 +0200 Lines: 26 Message-ID: References: <50745541.8060204@ttc-cmc.net> <50776FB4.5090701@ringerc.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 217.110.94.121 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: <50776FB4.5090701@ringerc.id.au> X-Pg-Spam-Score: -2.9 (--) X-Archive-Number: 201210/52 X-Sequence-Number: 23376 Craig Ringer, 12.10.2012 03:17: >> You are talking about a different matter. >> 1. 802 and prior drivers named serials as int4 (and big serials int8) >> 2. 900 and newer drivers named serials as serials (and you got a >> performance hit from that) >> >> We are now attempting to solve the problem #2, maintain the correct >> column name (serial and big serial), and if possible improve >> performance. > > I strongly disagree with this approach. "serial" and "bigserial" are *not* the correct column names. "serial" and "bigserial" are effectively macros and cease to exist in any meaningful way once expanded. > > Even if showing "serial" or "bigserial" were free, I'd still want to show the underlying types "integer" and "biginteger". > > Showing "serial" is not consistent with psql: But it is consistent with what an "end-user" would expect. When looking at a CREATE TABLE statement in a SQL tool, users expect to see "serial" there if the table was created that way. Regards Thomas