pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: btree_gin: properly call DirectFunctionCall1()
6+ messages / 2 participants
[nested] [flat]
* pgsql: btree_gin: properly call DirectFunctionCall1()
@ 2015-03-25 00:53 Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 6+ messages in thread
From: Bruce Momjian @ 2015-03-25 00:53 UTC (permalink / raw)
To: pgsql-committers
btree_gin: properly call DirectFunctionCall1()
Previously we called DirectFunctionCall3() with dummy arguments.
Patch by Jon Nelson
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/843cd0bfe6246d94d9b34a7f36bbb76fdba87b74
Modified Files
--------------
contrib/btree_gin/btree_gin.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: btree_gin: properly call DirectFunctionCall1()
@ 2015-03-25 02:02 Tom Lane <tgl@sss.pgh.pa.us>
parent: Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 6+ messages in thread
From: Tom Lane @ 2015-03-25 02:02 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-committers
Bruce Momjian <bruce@momjian.us> writes:
> btree_gin: properly call DirectFunctionCall1()
> Previously we called DirectFunctionCall3() with dummy arguments.
This patch is entirely wrong and has broken the buildfarm.
Please revert.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: btree_gin: properly call DirectFunctionCall1()
@ 2015-03-25 02:35 Bruce Momjian <bruce@momjian.us>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 6+ messages in thread
From: Bruce Momjian @ 2015-03-25 02:35 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers
On Tue, Mar 24, 2015 at 10:02:03PM -0400, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > btree_gin: properly call DirectFunctionCall1()
> > Previously we called DirectFunctionCall3() with dummy arguments.
>
> This patch is entirely wrong and has broken the buildfarm.
> Please revert.
OK, done.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: [COMMITTERS] pgsql: btree_gin: properly call DirectFunctionCall1()
@ 2015-03-26 00:51 Bruce Momjian <bruce@momjian.us>
parent: Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 6+ messages in thread
From: Bruce Momjian @ 2015-03-26 00:51 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
On Tue, Mar 24, 2015 at 10:35:10PM -0400, Bruce Momjian wrote:
> On Tue, Mar 24, 2015 at 10:02:03PM -0400, Tom Lane wrote:
> > Bruce Momjian <bruce@momjian.us> writes:
> > > btree_gin: properly call DirectFunctionCall1()
> > > Previously we called DirectFunctionCall3() with dummy arguments.
> >
> > This patch is entirely wrong and has broken the buildfarm.
> > Please revert.
>
> OK, done.
OK, I figured out that I was only supposed to change inet_in, not the
other calls to DirectFunctionCall3 (varbit_in and bit_in). Patch
attached.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Attachments:
btree_gin.diff (text/x-diff, 721B) download
diff --git a/contrib/btree_gin/btree_gin.c b/contrib/btree_gin/btree_gin.c
new file mode 100644
index 80521fb..1a5bb3c
*** a/contrib/btree_gin/btree_gin.c
--- b/contrib/btree_gin/btree_gin.c
*************** GIN_SUPPORT(macaddr, false, leftmostvalu
*** 318,327 ****
static Datum
leftmostvalue_inet(void)
{
! return DirectFunctionCall3(inet_in,
! CStringGetDatum("0.0.0.0/0"),
! ObjectIdGetDatum(0),
! Int32GetDatum(-1));
}
GIN_SUPPORT(inet, true, leftmostvalue_inet, network_cmp)
--- 318,324 ----
static Datum
leftmostvalue_inet(void)
{
! return DirectFunctionCall1(inet_in, CStringGetDatum("0.0.0.0/0"));
}
GIN_SUPPORT(inet, true, leftmostvalue_inet, network_cmp)
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Re: [COMMITTERS] pgsql: btree_gin: properly call DirectFunctionCall1()
@ 2015-03-26 02:16 Tom Lane <tgl@sss.pgh.pa.us>
parent: Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 6+ messages in thread
From: Tom Lane @ 2015-03-26 02:16 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; +Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Bruce Momjian <bruce@momjian.us> writes:
> OK, I figured out that I was only supposed to change inet_in, not the
> other calls to DirectFunctionCall3 (varbit_in and bit_in). Patch
> attached.
That looks better ...
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: btree_gin: properly call DirectFunctionCall1()
@ 2015-03-31 14:26 Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 6+ messages in thread
From: Bruce Momjian @ 2015-03-31 14:26 UTC (permalink / raw)
To: pgsql-committers
btree_gin: properly call DirectFunctionCall1()
Previously we called DirectFunctionCall3() with dummy arguments. Fixed
version of previous patch.
Report by Jon Nelson
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/0cf16b44cb749cac2ff9dcbbe92bfb94f72bb0d0
Modified Files
--------------
contrib/btree_gin/btree_gin.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2015-03-31 14:26 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25 00:53 pgsql: btree_gin: properly call DirectFunctionCall1() Bruce Momjian <bruce@momjian.us>
2015-03-25 02:02 ` Re: pgsql: btree_gin: properly call DirectFunctionCall1() Tom Lane <tgl@sss.pgh.pa.us>
2015-03-25 02:35 ` Re: pgsql: btree_gin: properly call DirectFunctionCall1() Bruce Momjian <bruce@momjian.us>
2015-03-26 00:51 ` Re: [COMMITTERS] pgsql: btree_gin: properly call DirectFunctionCall1() Bruce Momjian <bruce@momjian.us>
2015-03-26 02:16 ` Re: Re: [COMMITTERS] pgsql: btree_gin: properly call DirectFunctionCall1() Tom Lane <tgl@sss.pgh.pa.us>
2015-03-31 14:26 pgsql: btree_gin: properly call DirectFunctionCall1() Bruce Momjian <bruce@momjian.us>
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