Adjust the pg_constraint query so that it works without a LATERAL JOIN, since CockroachDB doesn't like that. This isn't hooked up to a cockroach test yet, but that's coming. Change-Id: I0df6b477d958996b673fc121eaa1f7c35e5cc504