On Tue, Jul 9, 2019 at 11:14 PM Andres Freund <and...@anarazel.de> wrote: > > + if (xlrec->wal_level < WAL_LEVEL_LOGICAL) > > + ereport(ERROR, > > + > > (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), > > + errmsg("logical decoding on > > standby requires " > > + "wal_level >= > > logical on master"))); > > + break; > > Hm, this strikes me as a not quite good enough error message (same in > other copies of the message). Perhaps something roughly like "could not > continue with logical decoding, the primary's wal level is now too low > (%u)"?
For what it's worth, I dislike that wording on grammatical grounds -- it sounds like two complete sentences joined by a comma, which is poor style -- and think Amit's wording is probably fine. We could fix the grammatical issue by replacing the comma in your version with the word "because," but that seems unnecessarily wordy to me. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company