Re: [HACKERS] gin--a rule for function parameter

2009-07-01 Thread Tom Lane
"Fly.Li" writes: > 1 ginarrayextract() has 2 parameters > 2 gin_extract_tsquery() has 3 parameters > 3 run sql(from plsql/src/test/regress/sql/opr_sanity.sql), it expect no > results: Well, actually what's cheating here is ginarrayextract, not tsearch2. That was fixed as of 8.3.

Re: [HACKERS] gin--a rule for function parameter

2009-07-01 Thread Fly.Li
1 ginarrayextract() has 2 parameters 2 gin_extract_tsquery() has 3 parameters 3 run sql(from plsql/src/test/regress/sql/opr_sanity.sql), it expect no results: - SELECT p1.amopclaid, p1.amprocnum, p2.oid, p2.proname, p3.opcname, p4.amopclaid, p4.amprocnum, p5.oid, p5.proname, p6.op

Re: [HACKERS] gin--a rule for function parameter

2009-07-01 Thread Tom Lane
"Fly.Li" 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