Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mpQxR-0000Xz-3g for pgsql-general@arkaria.postgresql.org; Tue, 23 Nov 2021 08:15:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mpQxP-00030i-61 for pgsql-general@arkaria.postgresql.org; Tue, 23 Nov 2021 08:15:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mpQxO-00030Z-Rj for pgsql-general@lists.postgresql.org; Tue, 23 Nov 2021 08:15:14 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mpQxJ-0007It-7c for pgsql-general@lists.postgresql.org; Tue, 23 Nov 2021 08:15:14 +0000 Received: from [188.174.53.248] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpQxH-0001Rc-L9; Tue, 23 Nov 2021 09:15:07 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 1AN8F6Gi003463 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 23 Nov 2021 09:15:06 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 1AN8F6fu003462; Tue, 23 Nov 2021 09:15:06 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Tue, 23 Nov 2021 09:15:06 +0100 From: Matthias Apitz To: pgsql-general Subject: SELECT fails to present result rows depending on the columns to show Message-ID: Reply-To: Matthias Apitz MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.53.248 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, We encounter the following problem in a 13.1 server on Linux: sisis=# select desk, feldnr from titel_worte where desk = '2' and feldnr = 257; desk | feldnr ------+-------- 2 | 257 (1 row) but: sisis=# select * from titel_worte where desk = '2' and feldnr = 257; desknr | feldnr | desk | deskorg | gesanz | aufanz | katkey1 | katkey2 --------+--------+------+---------+--------+--------+---------+--------- (0 row) sisis=# select desk, feldnr, deskorg from titel_worte where desk = '2' and feldnr = 257; desk | feldnr | deskorg ------+--------+--------- (0 row) The table was created as: create table titel_worte ( desknr serial , feldnr SMALLINT , desk VARCHAR (245) , deskorg VARCHAR (245) , gesanz INTEGER , aufanz INTEGER , katkey1 INTEGER , katkey2 INTEGER ) ; There are no messages in the serverlog when the SELECT fails to show the row. What could be the reason for this? Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub