pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: SELECT fails to present result rows depending on the columns to show
Date: Tue, 23 Nov 2021 09:15:06 +0100
Message-ID: <YZyjCkcCloug4Xun@c720-r368166> (raw)


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





view thread (4+ messages)  latest in thread

Message-ID: <YZyjCkcCloug4Xun@c720-r368166>
Permalink:  ../YZyjCkcCloug4Xun@c720-r368166/
Also on:    postgresql.org/message-id/YZyjCkcCloug4Xun@c720-r368166

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: guru@unixarea.de
  Subject: Re: SELECT fails to present result rows depending on the columns to show
  In-Reply-To: <YZyjCkcCloug4Xun@c720-r368166>
  References: <YZyjCkcCloug4Xun@c720-r368166>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox