Re: Stored procedure code no longer stored in v14 and v15, changed behaviour

Pasi Oja-Nisula <pon@iki.fi>

From: Pasi Oja-Nisula <pon@iki.fi>
To: pgsql-general@lists.postgresql.org
Date: 2022-12-02T21:15:33Z
Lists: pgsql-general
> If you want an audit comparison point, I'd suggest capturing
> the result of pg_get_functiondef or one of its sibling functions
> just after creating your function.  "pg_dump -s" is another
> pretty credible mechanism for capturing schema details.

That's very good info, thank you. I guess freaking out was unnecessary. Sorry.

So the idea is to do apples to apples comparison and forget the sql source files
with whitespace and comments. When comparing a know good database
I can do pg_get_functiondef in both databases and compare the results.
It's just a matter of how well each query tool can represent diffs or
do results
comparison. pg_dump output is even better for comparison.

Pasi