pgschema
pgschema copied to clipboard
Bug: where clause showing up with actual conditions empty
I have a materialized view with a where clause like this
WHERE pp.item_name IS NOT NULL AND r.supplier_id IS NOT NULL
Unfortunately pgschema is dumping that as
WHERE AND
I haven't been able to isolate a cause or produce a reproduction case that doesn't have all our names in it.
To the extent that it's possible, I think it would be good if when nodes render as empty string or nil a warning is emitted by the --debug flag.
I'll plan to update this in due course with an example if I can produce one.