On 2020-08-12 21:54, Robert Haas wrote:
One problem with this, which I think Tom pointed out before, is that it might make it to handle some forward-compatibility problems. In other words, if something that the server is generating needs to be modified for compatibility with a future release, it's not easy to do that. Like if we needed to quote something we weren't previously quoting, for example.
We already use a lot of other pg_get_*def functions in pg_dump. Does this one introduce any fundamentally new problems?
A hypothetical change where syntax that we accept now would no longer be accepted in a (near-)future version would create a lot of upsetness. I don't think we'd do it.
-- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services