Skip to content

pg_temp.tipg_catalog takes ~1 minute when there are large spatial tables #139

Answered by vincentsarago
hrodmn asked this question in Q&A
Discussion options

You must be logged in to vote

@hrodmn In theory we could remove the internal catalog to list the collections dynamically (previous discussion: #37)

As of today, we don't have $ nor time to work on this.

The main issue might come from

IF atttype IN ('timestamp', 'timestamptz') THEN
EXECUTE FORMAT(
$q$
SELECT to_json(min(%I::timestamptz)), to_json(max(%I::timestamptz))
FROM %s;
$q$,
attname,
attname,
att.attrelid::regclass::text
) INTO attmin, attmax;
ELSIF atttype IN ('geometry', 'geography') THEN
geometry_type := postgis_typmod_type(att.atttypmod);
srid = coalesce(nullif(postgis_typmod_srid(att.a…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@hrodmn
Comment options

hrodmn Nov 15, 2023
Maintainer Author

@vincentsarago
Comment options

@hrodmn
Comment options

hrodmn Nov 21, 2023
Maintainer Author

@vincentsarago
Comment options

@hrodmn
Comment options

hrodmn Nov 21, 2023
Maintainer Author

Answer selected by hrodmn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants