pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
operator family changes, sinval bug?
2+ messages / 2 participants
[nested] [flat]

* operator family changes, sinval bug?
@ 2015-06-26 00:32 Jeff Janes <jeff.janes@gmail.com>
  2015-06-26 13:57 ` Re: operator family changes, sinval bug? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Jeff Janes @ 2015-06-26 00:32 UTC (permalink / raw)
  To: pgsql-bugs

When I drop the optional triconsistent support function for a gin index
operator family, the system continues to use the function to support index
queries anyway, until I close the session and restart it, at which point it
reverts to using the binary consistent function.

Is this a bug in the cache invalidation mechanism?  Or am I just expecting
too much of it?

On one occasion, I got a
ERROR:  cache lookup failed for function 16442
when trying to do the query using the gin index, but usually it just
continues to work as expected even though it is invoking a function which
no longer exists.

I see the same behavior in both 9.4.4 and in HEAD.

Cheers,

Jeff



alter operator family gin_foobar_ops using gin drop function 6 (text,text);
drop function gin_foobar_triconsistent ( internal, smallint, text, integer,
internal, internal, internal) ;

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: operator family changes, sinval bug?
  2015-06-26 00:32 operator family changes, sinval bug? Jeff Janes <jeff.janes@gmail.com>
@ 2015-06-26 13:57 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2015-06-26 13:57 UTC (permalink / raw)
  To: Jeff Janes <jeff.janes@gmail.com>; +Cc: pgsql-bugs

Jeff Janes <jeff.janes@gmail.com> writes:
> When I drop the optional triconsistent support function for a gin index
> operator family, the system continues to use the function to support index
> queries anyway, until I close the session and restart it, at which point it
> reverts to using the binary consistent function.

> Is this a bug in the cache invalidation mechanism?  Or am I just expecting
> too much of it?

There is no invalidation support for mucking with operator class contents.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-06-26 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-26 00:32 operator family changes, sinval bug? Jeff Janes <jeff.janes@gmail.com>
2015-06-26 13:57 ` Tom Lane <tgl@sss.pgh.pa.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