You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever one of the custom scripts has bad syntax, the error message is complicated and unhelpful:
PL/pgSQL function inline_code_block line1 at EXECUTE
SQL statement " do $_$ begin execute replace(replace(replace(replace( pg_read_file('/build/tmp.RwJWZ0twg6/extension-custom-scripts/pgmq/after-create.sql') >Error executing SQL file
Solution
Nix has a standard patches attribute which can be used. Which is much more visible and doesn't happen at runtime, but at "release" time.
Migrations should have a SSoT and that should be the migrations subdir.
It seems that this practice was adopted before Nix was introduced.
Following this, supautils custom scripts should likely be gone too.
The text was updated successfully, but these errors were encountered:
Problem
At
create extension
time, several extensions are patched and migrations are applied to them. This is hard to see and maintain.For example:
pgmq
function has a function patched here.pg_cron
has a privilege migration applied hereAdditionally:
Solution
Nix has a standard
patches
attribute which can be used. Which is much more visible and doesn't happen at runtime, but at "release" time.Migrations should have a SSoT and that should be the migrations subdir.
It seems that this practice was adopted before Nix was introduced.
Following this, supautils custom scripts should likely be gone too.
The text was updated successfully, but these errors were encountered: