pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Luka Zivkovic <lukazivkovic58@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: New operators and class for jsonb with gin indexing
Date: Tue, 23 Feb 2021 10:28:55 -0500
Message-ID: <3822832.1614094135@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+=JdnNC-Z1hQRyf1XkN_usqDP8ctbdsizfkin3NF0i9-C+D7g@mail.gmail.com>
References: <CA+=JdnNC-Z1hQRyf1XkN_usqDP8ctbdsizfkin3NF0i9-C+D7g@mail.gmail.com>

Luka Zivkovic <lukazivkovic58@gmail.com> writes:
> I am having problems applying gin indexing to my new operator class for
> type jsonb.
> I created an operator that can query(jsonb column) keys and dates where
> dates are more than, less than, equal and not equal to the one provided
> inside another jsonb.
> Because I want to make it use index search and not sequential search, I
> wanted to use gin indexing, but it says that i'm missing support functions.
> Did anybody try to do something like this?

There's not a whole lot of documentation about this, but there is some:

https://www.postgresql.org/docs/13/gin-extensibility.html

After reading that, I'd suggest looking into the code for gin opclass
support in various contrib modules (hstore might be a good start).

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <3822832.1614094135@sss.pgh.pa.us>
Permalink:  ../3822832.1614094135@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3822832.1614094135@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, lukazivkovic58@gmail.com
  Subject: Re: New operators and class for jsonb with gin indexing
  In-Reply-To: <3822832.1614094135@sss.pgh.pa.us>
  References: <CA+=JdnNC-Z1hQRyf1XkN_usqDP8ctbdsizfkin3NF0i9-C+D7g@mail.gmail.com> <3822832.1614094135@sss.pgh.pa.us>

* 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