Skip to content

Commit

Permalink
partition_steps name fix
Browse files Browse the repository at this point in the history
In psql17 partition_steps.name got schema attached and it brakes chunker. The change ensures that schema is not in the name.
  • Loading branch information
ckpklos authored Nov 18, 2024
1 parent 6c569c0 commit 84c741e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pgstac/sql/003b_partitions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ CREATE UNIQUE INDEX ON partitions (partition);

CREATE MATERIALIZED VIEW partition_steps AS
SELECT
partition as name,
split_part(partition, '.', -1) AS name,
date_trunc('month',lower(partition_dtrange)) as sdate,
date_trunc('month', upper(partition_dtrange)) + '1 month'::interval as edate
FROM partitions_view WHERE partition_dtrange IS NOT NULL AND partition_dtrange != 'empty'::tstzrange
Expand Down

0 comments on commit 84c741e

Please sign in to comment.