On Mon, Sep 14, 2020 at 10:56:01PM -0400, Tom Lane wrote: > (Note that we disallow sub-queries in CHECK constraints, and also > disclaim responsibility for what happens if you cheat by hiding > the subquery in a function. So while it's certainly possible to > build CHECK constraints that only work if table X is loaded before > table Y, pg_dump already doesn't guarantee that'll work, --data-only > or otherwise.)
Yep, exactly what I was thinking upthread by cheating with a schema having cross-table references in a check constraint. -- Michael
signature.asc
Description: PGP signature