pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ilya Anfimov <ilan@tzirechnoy.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: SELECT fails to present result rows depending on the columns to show
Date: Tue, 23 Nov 2021 11:31:21 +0300
Message-ID: <20211123083121.GB908685@azor.tzirechnoy.ru> (raw)
In-Reply-To: <YZyjCkcCloug4Xun@c720-r368166>
References: <YZyjCkcCloug4Xun@c720-r368166>

On Tue, Nov 23, 2021 at 09:15:06AM +0100, Matthias Apitz wrote:
> 
> 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

 Broken index could. Then this anomaly shoud have gone after reindex table.

> 
> 	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: <20211123083121.GB908685@azor.tzirechnoy.ru>
Permalink:  ../20211123083121.GB908685@azor.tzirechnoy.ru/
Also on:    postgresql.org/message-id/20211123083121.GB908685@azor.tzirechnoy.ru

 · 

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: ilan@tzirechnoy.com
  Subject: Re: SELECT fails to present result rows depending on the columns to show
  In-Reply-To: <20211123083121.GB908685@azor.tzirechnoy.ru>
  References: <YZyjCkcCloug4Xun@c720-r368166> <20211123083121.GB908685@azor.tzirechnoy.ru>

* 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