Skip site navigation (1) Skip section navigation (2)

Re: gin--a rule for function parameter

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Fly(dot)Li" <fly2nn(at)126(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: gin--a rule for function parameter
Date: 2009-07-01 14:15:58
Message-ID: 10550.1246457758@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
"Fly.Li" <fly2nn(at)126(dot)com> writes:
> version: PG8.2.2
> MY Question:
> Why must "take the same number of parameters" ?

Because the GIN code will call it with a particular number of arguments.

> When I use tsearch2, I found that gin_extract_tsquery() has 3 parameters, it 
> break the rule "take the same number of parameters".

3 is the correct number of parameters for an extractQuery function
(before 8.4 anyway), so I'm not clear what you are complaining about.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Dimitri FontaineDate: 2009-07-01 14:25:25
Subject: Re: Extensions User Design
Previous:From: Tom LaneDate: 2009-07-01 14:01:58
Subject: Re: Extensions User Design

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group