wal_insert_waring_issue - Mailing list pgsql-hackers

From movead.li@highgo.ca
Subject wal_insert_waring_issue
Date
Msg-id 2020033016585362994827@highgo.ca
Whole thread Raw
List pgsql-hackers
Hello hackers,

I find a small issue in XLogInsertRecord() function: it checks whether it's able
to insert a wal by XLogInsertAllowed(), when refused it reports an error "cannot
make new WAL entries during recovery".

I notice that XLogInsertAllowed() reject to insert a wal record not only sometimes
in recovery status, but also after a 'shutdown' checkpoint. So if it's better to
add an error report message "cannot make new WAL entries during shutdown" which I
make a patch attached.

  Best regards,

Highgo Software (Canada/China/Pakistan)
URL : www.highgo.ca
EMAIL: mailto:movead(dot)li(at)highgo(dot)ca
Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Possible copy and past error? (\usr\backend\commands\analyze.c)
Next
From: Amit Kapila
Date:
Subject: Re: error context for vacuum to include block number