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

Problem with creating Create_Function_GetCacheItemFormat.sql #2

Open
artzie92 opened this issue Sep 1, 2020 · 2 comments
Open

Problem with creating Create_Function_GetCacheItemFormat.sql #2

artzie92 opened this issue Sep 1, 2020 · 2 comments

Comments

@artzie92
Copy link

artzie92 commented Sep 1, 2020

Hi,
There is an error during executing the Create_Function_GetCacheItemFormat.sql script:

NOTICE: identifier "TABLE(distcache_id text, distcache_value bytea, distcache_expiresattime timestamp with time zone, distcache_slidingexpirationinseconds bigint, distcache_absoluteexpiration timestamp with time zone)" will be truncated to "TABLE(distcache_id text, distcache_value bytea, distcache_expir"

ERROR: type "TABLE(distcache_id text, distcache_value bytea, distcache_expir" does not exist
SQL state: 42704

Regards

@wullemsb
Copy link
Owner

I'll look into it...

@ZedZipDev
Copy link

ZedZipDev commented Sep 13, 2023

My fix:

CREATE OR REPLACE FUNCTION public.getcacheitemformat(
	"SchemaName" text,
	"TableName" text,
	"DistCacheId" text,
	"UtcNow" timestamp with time zone)
    --RETURNS SETOF "TABLE(distcache_id text, distcache_value bytea, distcache_expiresattime timestamp with time zone, distcache_slidingexpirationinseconds bigint, distcache_absoluteexpiration timestamp with time zone)"
	RETURNS TABLE(distcache_id text, distcache_value bytea, distcache_expiresattime timestamp with time zone, distcache_slidingexpirationinseconds bigint, distcache_absoluteexpiration timestamp with time zone)	
    LANGUAGE 'plpgsql'
    COST 100.0
    VOLATILE NOT LEAKPROOF 
    ROWS 1000.0
AS $function$
...

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

3 participants