Re: ArchiveEntry optional arguments refactoring
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Dmitry Dolgov <9erthalion6@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Alvaro Herrera <alvherre@2ndquadrant.com>, Amit Khandekar <amitdkhan.pg@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2019-01-23T16:47:34Z
Lists: pgsql-hackers
Hi, On 2019-01-23 16:12:15 +0100, Dmitry Dolgov wrote: > To make this discussion a bit more specific, I've created a patch of how it can > look like. Thanks. > All the arguments, except Archive, CatalogId and DumpId I've moved > into the ArchiveOpts structure. Not all of them could be empty before, but > anyway it seems better for consistency and readability. Some of the arguments > had empty string as a default value, I haven't changed anything here yet > (although this mixture of NULL and "" in ArchiveEntry looks a bit confusing). Probably worth changing at the same time, if we decide to go for it. To me this does look like it'd be more maintainable going forward. Greetings, Andres Freund
Commits
-
Add ArchiveOpts to pass options to ArchiveEntry
- f831d4accda0 12.0 landed
-
Remove WITH OIDS support, change oid catalog column visibility.
- 578b229718e8 12.0 cited