Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible missing cache invalidation #526

Open
harrybiddle opened this issue Aug 29, 2021 · 0 comments
Open

Possible missing cache invalidation #526

harrybiddle opened this issue Aug 29, 2021 · 0 comments

Comments

@harrybiddle
Copy link
Contributor

harrybiddle commented Aug 29, 2021

I was getting the following result from SELECT * FROM "argentina/customs-declarations"."2013":

argentina/customs-declarations.2013: FAIL:
	Internal database error. Details: psycopg2.errors.NumericValueOutOfRange: value "5202990000" is out of range for type integer

	CONTEXT:  PL/pgSQL function schema_controller.fatal(text) line 3 at RAISE
	SQL statement "SELECT schema_controller.fatal(error_text)"
	PL/pgSQL function schema_controller.get_result_from_cache(anyelement,text,text,bigint) line 14 at PERFORM

The issue here is that the type should be character varying, not integer. I altered the schema and re-ran the query, but then got this:

argentina/customs-declarations.2013: FAIL:
	structure of query does not match function result type
	DETAIL:  Returned type character varying does not match expected type integer in column 9.
	CONTEXT:  PL/pgSQL function schema_controller.get_result_from_cache(anyelement,text,text,bigint) line 17 at RETURN QUERY

if I bust the cache with WHERE 82738 = 82738 then the query works fine.

I think the cache is at fault here: it should have either got with the program that the schema had changed, or it should have been invalidated somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant