Re: our checks for read-only queries are not great
Stephen Frost <[email protected]> Mon, 13 Jan 2020 15:00:02 -0500
| Newsgroups | gmane.comp.db.postgresql.devel.general |
|---|---|
| Message-ID | <[email protected]> |
Greetings, * Laurenz Albe ([email protected]) wrote: > On Mon, 2020-01-13 at 13:56 -0500, Stephen Frost wrote: > > > I think that having ALTER SYSTEM commands in pg_dumpall output > > > would be a problem. It would cause all kinds of problems whenever > > > parameters change. Thinking of the transition "checkpoint_segments" > > > -> "max_wal_size", you'd have to build some translation magic into pg_dump. > > > Besides, such a feature would make it harder to restore a dump taken > > > with version x into version x + n for n > 0. > > > > pg_dump already specifically has understanding of how to deal with old > > options in other things when constructing a dump for a given version- > > and we already have issues that a dump taken with pg_dump X has a good > > chance of now being able to be restoreding into a PG X+1, that's why > > it's recommended to use the pg_dump for the version of PG you're > > intending to restore into, so I don't particularly agree with any of the > > arguments presented above. > > Right. > But increasing the difficulty of restoring a version x pg_dump with > version x + 1 is still not a thing we should lightly do. I've never heard that and I don't agree with it being a justification for blocking sensible progress. > Not that the docs currently say "it is recommended to use pg_dumpall > from the newer version". They don't say "is is not supported". It's recommended due to exactly the reasons presented and no one is saying that such isn't supported- but we don't and aren't going to guarantee that it's going to work. We absolutely know of cases where it just won't work, today. If that's justification for saying it's not supported, then fine, let's change the language to say that. Thanks, Stephen
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJeHMxCAAoJEO1sijiDR2RVQ9oP/3LdfL9pmCXzcTCPKEn5LFe4 mgo7sYIjU8SIW3XqxpO4teJaAfV7PIWJxa5aZfRUkMT+gA7OVrOqxbHqsS7k/zDF LwKarWY63cPQllSPE2aYIT/1sPWtss23riOIYLj6f4TqVem70ftryUWzl69Vsg4/ aRSNB84rJgP/e112uaoKugUZ2YQfiSRaW4gbTzREJaKidB4y5bGglyqDDfpOM7gO 8HPBflqM+5IvsDze1mVjYBGmm6rVb+DEoAahS0zBgRal/Na+SHL6tfD2/6xeEW+R Zp/6boQK7OLae8DkVAzpxMJQqRUSlQzrJR7GDHkpaOSa16HO18NNntO3SmehBksL BzZYbEq/7G9AEwcqvvM5wmxttpiZEwj3WgFBOh5zxi6USrohmCafezqv09h3Afm9 oAMUVe6PNMDHDZ7TFN55cxk+ZPMURVjNkJzA9rGxJk8yP2XfXJ48wvK9E1NPuajR YKj7+9xHil68ji7J5Ym5p/n+gKRjg3kx9mHgQ5z/XD7Hbgexjx9mM1CJc7G250dI IttIhfh47DuSw2gZf9l2b2FS77PXDFgoD+AYHfXj69zW+8EPg1g4tbFuHHjkNnpu Tl1L6+d7tH+d1T4yaY2I+86EUWv4rBxTecZmCcOyAsAwEEZApmautxd248uBvM4u HDQPza8YbFIm5rI6I3ae =6YSo -----END PGP SIGNATURE-----