Re: how to use the struct "RangeFunction" in Postgres 9.6 ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: lin <jluwln(at)163(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to use the struct "RangeFunction" in Postgres 9.6 ?
Date: 2017-05-22 14:24:20
Message-ID: 64732.1495463060@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

lin <jluwln(at)163(dot)com> writes:
> I am puzzled for how to use the struct "RangeFunction" in Postgres 9.6, the struct "RangeFunction" is not the same with 9.3.
> Can someone help me how to write the function "make_RangeFunction"?

You probably want to look at "func_table:" and associated productions
in gram.y, and maybe compare those to the RangeFunction-making productions
in 9.3's gram.y.

(Since RangeFunction isn't used past the raw parsetree stage, it's not
very clear to me why you'd need to make one anywhere else ...)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Siddhartha Sahu 2017-05-22 16:02:35 Please participate in a research survey on graphs
Previous Message Adrian Klaver 2017-05-22 12:56:55 Re: issue performing a switchover with repmgr