pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add attstattarget to FormExtraData_pg_attribute
Date: Sun, 17 Mar 2024 11:53:21 +0000
Message-ID: <E1rlp4q-004H0u-NR@gemulon.postgresql.org> (raw)

Add attstattarget to FormExtraData_pg_attribute

This allows setting attstattarget when a relation is created.

We make use of this by having index_concurrently_create_copy() copy
over the attstattarget values when the new index is created, instead
of having index_concurrently_swap() fix it up later.

Reviewed-by: Tomas Vondra <tomas.vondra@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/4da8d211-d54d-44b9-9847-f2a9f1184c76@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6a004f1be87d34cfe51acf2fe2552d2b08a79273

Modified Files
--------------
src/backend/catalog/heap.c         |  5 +-
src/backend/catalog/index.c        | 97 +++++++++++---------------------------
src/backend/catalog/toasting.c     |  2 +-
src/backend/commands/indexcmds.c   |  2 +-
src/include/catalog/index.h        |  1 +
src/include/catalog/pg_attribute.h |  1 +
6 files changed, 36 insertions(+), 72 deletions(-)



view thread (2+ messages)

Message-ID: <E1rlp4q-004H0u-NR@gemulon.postgresql.org>
Permalink:  ../E1rlp4q-004H0u-NR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rlp4q-004H0u-NR@gemulon.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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add attstattarget to FormExtraData_pg_attribute
  In-Reply-To: <E1rlp4q-004H0u-NR@gemulon.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