pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ktr@goldin-rudahl.com
Subject: BUG #15023: problem with pg_statistic
Date: Sun, 21 Jan 2018 02:59:24 +0000
Message-ID: <20180121025924.3633.29967@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15023
Logged by:          kurt rudahl
Email address:      ktr@goldin-rudahl.com
PostgreSQL version: Unsupported/Unknown
Operating system:   linux
Description:        

Problem: cannot reindex pg_statistic
         therefore cannot vacuum

Steps to recreate:
1. restart postgresql
2. psql thaistocks

\set VERBOSITY verbose
thaistocks=# reindex table pg_statistic;
ERROR:  23505: could not create unique index
DETAIL:  Table contains duplicated values.
LOCATION:  comparetup_index, tuplesort.c:2163

thaistocks=# select starelid,staattnum from pg_statistic group by
starelid,staattnum having count(*) > 1;
 starelid | staattnum 
----------+-----------
    10723 |         5
    10728 |         1
     1260 |         9
(3 rows)



view thread (3+ messages)  latest in thread

Message-ID: <20180121025924.3633.29967@wrigleys.postgresql.org>
Permalink:  ../20180121025924.3633.29967@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20180121025924.3633.29967@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, ktr@goldin-rudahl.com
  Subject: Re: BUG #15023: problem with pg_statistic
  In-Reply-To: <20180121025924.3633.29967@wrigleys.postgresql.org>
  References: <20180121025924.3633.29967@wrigleys.postgresql.org>

* 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