Skip to content

JDBC Driver shows erratic behavior when filtering on CURRENT_DATE #3184

Answered by tvondra
arjenpeters asked this question in Q&A
Discussion options

You must be logged in to vote

FWIW I did respond in the pgsql-hackers that I suspect this might be consistent with corrupted index. That'd be consistent with the erratic behavior you see after switching from seqscan to index scan, where the index is "missing" some of the keys (or can't find them for whatever reason). Hard to know for sure, of course.

I'd try a couple things:

  1. set enable_nestloop=off, see if the results get correct

  2. try bt_index_check on i_39773, might notice some corruption

  3. rebuild the index

Replies: 8 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@arjenpeters
Comment options

Comment options

You must be logged in to vote
1 reply
@arjenpeters
Comment options

Comment options

You must be logged in to vote
1 reply
@arjenpeters
Comment options

Comment options

You must be logged in to vote
1 reply
@arjenpeters
Comment options

Comment options

You must be logged in to vote
1 reply
@arjenpeters
Comment options

Comment options

You must be logged in to vote
3 replies
@arjenpeters
Comment options

@tvondra
Comment options

Answer selected by arjenpeters
@arjenpeters
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants