pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Problems with unique constraints
Date: Thu, 26 Jan 2023 13:42:24 +0100
Message-ID: <47693153-3704-d084-fded-62ff16dadbf0@jakobs.com> (raw)
In-Reply-To: <1pL0ni-00CnZb-3m@unimaticaspa.it>
References: <CAK+uD7heWzrAjdRcSYq-z=crnb5mEs8JgsfGYtrK+vb0yrjeKg@mail.gmail.com>
	<b977effa32ce6e3088469871e294bea5d4d513b1.camel@cybertec.at>
	<1pKzDp-00CgfG-JH@unimaticaspa.it>
	<1968679708.705665.1674730579540@office.mailbox.org>
	<1pL0ni-00CnZb-3m@unimaticaspa.it>


Am 26.01.23 um 12:52 schrieb Massimo Ortensi:
>
> we had OS upgrades, but with the same locale.
>
> Is there any chance to avoid rebuilding of all indexes/constraints by 
> checking the correctness of indexes ?
>
> *Massimo Ortensi - Responsabile ICT *
> logo <http://www.unimaticaspa.it/;
>
> Via Cristoforo Colombo, 21 - 40131, Bologna
> Tel.  051 4195069
> Cell.  3351092560
>
> _mortensi@unimaticaspa.it <javascript:message_new('mailto', 
> {mailto:'mortensi@unimaticaspa.it', folder:'SU5CT1g=', msgid:'', 
> subject: '', body:'0'})> _
>
In case of a change in the locale properties - albeit the name of the 
locale remained the same - index corruption is possible.

This has been reported on RedHat platforms. The reaction of the 
PostgreSQL project was to incorporate the locale libraries by ICU. They 
can be used on demand. If they change, the database server will 
automatically reindex if necessary.

If something in the OS libraries changes, the database server won't be 
informed.

When indexes are corrupt (and data are fine), the best solution is to 
reindex all indexes over varchar and text columns.

Kind Regards,

Holger


-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012



Attachments:

  [image/jpeg] UnimaticaRGI.jpg (1.6K, ../47693153-3704-d084-fded-62ff16dadbf0@jakobs.com/3-UnimaticaRGI.jpg)
  download | view image

  [application/pgp-signature] OpenPGP_signature (202B, ../47693153-3704-d084-fded-62ff16dadbf0@jakobs.com/4-OpenPGP_signature)
  download

view thread (8+ messages)  latest in thread

Message-ID: <47693153-3704-d084-fded-62ff16dadbf0@jakobs.com>
Permalink:  ../47693153-3704-d084-fded-62ff16dadbf0@jakobs.com/
Also on:    postgresql.org/message-id/47693153-3704-d084-fded-62ff16dadbf0@jakobs.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: holger@jakobs.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Problems with unique constraints
  In-Reply-To: <47693153-3704-d084-fded-62ff16dadbf0@jakobs.com>

* 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