pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

ignore views seems broken

Open xpusostomos opened this issue 2 months ago • 1 comments

Using current pgschema git as of today... ignore views seems broken..

I have this in my .pgschemaignore...

[schemas]
patterns = [
    "audit",
    "loader"
]

[triggers]
patterns = [
   "audit_trigger_row",
   "audit_trigger_stm"
]
            
[views]
patterhs = [
    "batch_stack_v"
]

so it should ignore and not dump batch_stack_v, but the dump has this:

-- Name: batch_stack_v; Type: VIEW; Schema: -; Owner: -
--
    
CREATE OR REPLACE VIEW batch_stack_v AS
 SELECT subq.display_as,
    subq.id,

and then it fails because the view refers to something in another schema. pg_dump is as given before, say the word and I can give it again. I suspect you may need to keep that around for more bug reports.

BTW, hope the split ordering will get fixed soon.

xpusostomos avatar Sep 11 '26 11:09 xpusostomos

[views] patterhs = [ "batch_stack_v" ]

This is a typo in patterhs

tianzhou avatar Sep 20 '26 03:09 tianzhou