public inbox for [email protected]
help / color / mirror / Atom feedFrom: Zhang Mingli <[email protected]>
To: PostgreSQL Hackers <[email protected]>
Subject: How to declare GIN index on array type column when bootstrap?
Date: Tue, 21 May 2024 17:27:31 +0800
Message-ID: <01e0f73d-3436-47b2-922a-1b88afabf3d2@Spark> (raw)
In-Reply-To: <f2eb71a7-32fb-4745-9a0a-76d550df9681@Spark>
References: <f2eb71a7-32fb-4745-9a0a-76d550df9681@Spark>
Hi, all
I want to add some columns of int(or Oid) array and declare GIN index for it in catalog when bootstrap.
But current catalogs all use btree, I tried to declare a GIN index but failed, ex:
pg_class.h
```
CATALOG(pg_class
...
Int32 my_new_column[1] BKI_DEFAULT(_null_);
...
} FormData_pg_class;
DECLARE_INDEX(pg_class_my_index, 7200, on pg_class using gin(my_new_column array_ops));
#define ClassMYIndexId 7200
```
But this failed when init in heap_form_tuple().
I could use SQL to create GIN index column for user tables.
But is it possible to declare array column with GIN index in catalog when bootstrap?
Thanks.
Zhang Mingli
www.hashdata.xyz
view thread (2+ messages)
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: How to declare GIN index on array type column when bootstrap?
In-Reply-To: <01e0f73d-3436-47b2-922a-1b88afabf3d2@Spark>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox