Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5013AB5DBD8 for ; Thu, 4 Aug 2011 11:50:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 45433-04 for ; Thu, 4 Aug 2011 14:50:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id AC1F6B5D944 for ; Thu, 4 Aug 2011 11:50:13 -0300 (ADT) Received: by fxh19 with SMTP id 19so1818620fxh.19 for ; Thu, 04 Aug 2011 07:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=oS2eJHu+N511B1IvpMUt+oH7BpVw1/vcvqGNI2JS5i8=; b=eMJtFyDC2EeBbWLIzBZ70hXYc1lGCjfqOK3kuDxnjQZOFIt3MTtqMfkqo246lSFtjx X9exFQck85xcIhj4MWo4h/lJRKy6Wx3Uz8uCSD2FtmtKJvMc3+azxA3Tr3zMY6OK5Fbf 2QMOCkYoiKIbs10hxdB3aDLbohMs6J1LZ86VM= Received: by 10.223.16.140 with SMTP id o12mr1289468faa.89.1312469413318; Thu, 04 Aug 2011 07:50:13 -0700 (PDT) Received: from [192.168.1.180] ([89.28.84.116]) by mx.google.com with ESMTPS id e10sm1276369fak.42.2011.08.04.07.50.11 (version=SSLv3 cipher=OTHER); Thu, 04 Aug 2011 07:50:11 -0700 (PDT) Message-ID: <4E3AB1B2.5040704@gmail.com> Date: Thu, 04 Aug 2011 17:50:26 +0300 From: Nikolay User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Mysterious column "name" Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.888 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, WEIRD_QUOTING=0.001 X-Spam-Level: X-Archive-Number: 201108/26 X-Sequence-Number: 35694 Good day! I found one strange results for sql-query. create table testtable ( f1 int, f2 int ); insert into testtable(f1, f2) values(1, 100); select testtable.* from testtable; // it is ok select testtable from testtable; // it is ok select testtable.name from testtable; // returns strange result. ----------------------------------------------------------------- name name ----------------------------------------------------------------- "(1,100)" ----------------------------------------------------------------- no error message about nonexistent column. Result is similar to second variant, but pgAdmin3 shows not full record. for long table the result is truncated select aaaaaa."name" from yc_accounts aaaaaa ----------------------------------------------------------------- name name ----------------------------------------------------------------- "(1154,81,testtter,"","","","","","","","","",donald22@126.com,"" ----------------------------------------------------------------- The same results on two servers. PostgreSQL 9.0.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real (Debian 4.4.5-8) 4.4.5, 64-bit PostgreSQL 9.0.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.5.real (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2, 64-bit Is it a feature or a bug? I didn't found information in documentation about this. Best regards. Nikolay.