pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

Fingerprinting tracks ignored files

Open PadenZach opened this issue 1 year ago • 0 comments

Example / Duplicate Issue

# .pgschemaignore
[procedures]
patterns = ["foobar"]
-- run before pgschema apply
CREATE OR REPLACE PROCEDURE foobar(target_role text)
LANGUAGE plpgsql
AS $$
BEGIN
    RAISE NOTICE 'hello %', target_role;
END;
$$;


-- In main.sql plan
CREATE TABLE test (id serial primary key, name text);

pgschema apply --file main.sql

Expected Behavior

The above results in fingerprint mismatch, I'd expect ignored objects to not be included in the fingerprint hash calculation.

PadenZach avatar Oct 21 '25 03:10 PadenZach