public inbox for [email protected]
help / color / mirror / Atom feedOverride sort order
2+ messages / 1 participants
[nested] [flat]
* Override sort order
@ 2016-06-28 11:31 Anthony Ananich <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Anthony Ananich @ 2016-06-28 11:31 UTC (permalink / raw)
To: pgsql-docs
Dear All,
I’ve got a need to change sort order for jsonb field. I’m looking for a way to change “order by” behavior like it is described in my previous question.
I’ve found a piece of doc which says that it is possible to override method “int compare(Datum a, Datum b)” here:
https://www.postgresql.org/docs/9.5/static/gin-extensibility.html
I wonder if there are any examples available?
If not I’m opened to offer my help in making one.
Regards,
Anthony Ananich
http://ananich.pro
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Override sort order
@ 2016-06-28 11:58 Anthony Ananich <[email protected]>
parent: Anthony Ananich <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Ananich @ 2016-06-28 11:58 UTC (permalink / raw)
To: pgsql-docs
Just in case: by previous question I mean this one:
https://www.postgresql.org/message-id/[email protected]
On Jun 28, 2016, at 14:31, Anthony Ananich <[email protected]> wrote:
> Dear All,
>
> I’ve got a need to change sort order for jsonb field. I’m looking for a way to change “order by” behavior like it is described in my previous question.
>
> I’ve found a piece of doc which says that it is possible to override method “int compare(Datum a, Datum b)” here:
> https://www.postgresql.org/docs/9.5/static/gin-extensibility.html
>
> I wonder if there are any examples available?
>
> If not I’m opened to offer my help in making one.
>
> Regards,
> Anthony Ananich
> http://ananich.pro
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-06-28 11:58 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-06-28 11:31 Override sort order Anthony Ananich <[email protected]>
2016-06-28 11:58 ` Anthony Ananich <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox