Greetings, * Tom Lane (t...@sss.pgh.pa.us) wrote: > Robert Haas <robertmh...@gmail.com> writes: > > To me, forcing every tools author to use postgresql.conf parsing tools > > rather than just appending to the file is a needless burden on tool > > authors. I'd vote for just having ALTER SYSTEM silently drop all but > > the last of duplicated entries. > > I haven't been paying too close attention to this thread, but isn't > that exactly what it does now and always has? guc.c, at least, certainly > is going to interpret duplicate entries that way.
The issue isn't with reading them and interpreting them, it's what happens when you run ALTER SYSTEM and it goes and modifies the file. Presently, it basically operates on the first entry it finds when performing a SET or a RESET. Which also means that you can issue SET's to your heart's content, and if there's a duplicate for that GUC, you'll never actually change what is interpreted. Thanks, Stephen
signature.asc
Description: PGP signature