Minor fixes for upcoming version 13
Minor fixes for upcoming version 13
Hello hackers, Please consider fixing minor defects in the source code and documentation. 1. a missing dot in guc.c "SELECT name, short_desc FROM pg_settings WHERE short_desc NOT LIKE '%.'" finds only this one instance. 2. inrange -> in_range the former spelling is unique 3. sigature -> signature 4. "start timeline %u not found history of timeline %u" -> "start timeline %u not found in history of timeline %u" it seems that a preposition is missing 5. BackgroundWorker *worker -> BackgroundWorker *worker incorrect Docbook tag 6. "unhandled previous state in xqs" -> "unhandled previous state at end quote"? "xqs" is rather cryptic for a user-visible message I'm not sure about 6, so the attached patch covers only 1-5. Best regards, Alexander
Re: Minor fixes for upcoming version 13
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Alexander Lakhin writes: > Please consider fixing minor defects in the source code and documentation. I agree with all of these, except the markup fixes in bgworker.sgml still seem not right; it should be more like RegisterBackgroundWorker(BackgroundWorker *worker) > 6. "unhandled previous state in xqs" -> "unhandled previous state at end > quote"? > "xqs" is rather cryptic for a user-visible message But it's not user-visible is it? That should surely be a can't-happen case. Will push in a little bit. regards, tom lane
Re: Minor fixes for upcoming version 13
От:
Alexander Lakhin <exclusion@gmail.com>
Дата:
Hello Tom, 09.09.2020 18:29, Tom Lane wrote: > Alexander Lakhin writes: >> Please consider fixing minor defects in the source code and documentation. > I agree with all of these, except the markup fixes in bgworker.sgml > still seem not right; it should be more like > > RegisterBackgroundWorker(BackgroundWorker *worker) Yes, but I've tried to minimize the change and align with the adjacent text. For example: Once running, the process can connect to a database by calling BackgroundWorkerInitializeConnection(char *dbname... >> 6. "unhandled previous state in xqs" -> "unhandled previous state at end >> quote"? >> "xqs" is rather cryptic for a user-visible message > But it's not user-visible is it? That should surely be a can't-happen > case. I've encountered this while translating NLS messages in postgres.po and ecpg.po. So I think it should at least puzzle translators. Best regards, Alexander
Re: Minor fixes for upcoming version 13
От:
John Naylor <john.naylor@2ndquadrant.com>
Дата:
On Wed, Sep 9, 2020 at 12:16 PM Alexander Lakhin wrote: > > Hello Tom, > > 09.09.2020 18:29, Tom Lane wrote: > > But it's not user-visible is it? That should surely be a can't-happen > > case. > I've encountered this while translating NLS messages in postgres.po and > ecpg.po. So I think it should at least puzzle translators. Maybe instead Assert(0) with a comment or something like that? -- John Naylor https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Re: Minor fixes for upcoming version 13
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
John Naylor writes: > On Wed, Sep 9, 2020 at 12:16 PM Alexander Lakhin wrote: >> 09.09.2020 18:29, Tom Lane wrote: >>> But it's not user-visible is it? That should surely be a can't-happen >>> case. >> I've encountered this while translating NLS messages in postgres.po and >> ecpg.po. So I think it should at least puzzle translators. > Maybe instead Assert(0) with a comment or something like that? Maybe what we need is yyerror_internal() for messages that don't require translation. Or just convert it to a plain elog(ERROR) ... that would lose the possibility of providing an error cursor, but that seems like something we don't need here either. regards, tom lane