pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Andreas Kretschmer <andreas@a-kretschmer.de>
Cc: Shani Israeli <sisraeli@illusivenetworks.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PANIC: could not write to log file {} at offset {}, length {}: Invalid argument
Date: Thu, 05 Nov 2020 20:19:51 -0500
Message-ID: <1533856.1604625591@sss.pgh.pa.us> (raw)
In-Reply-To: <20201106011028.GE21123@paquier.xyz>
References: <CAHwa7Ea1R7kYuyEOKU6LW-tYMXJAM30zy9K+4iYW5TykAgKDgQ@mail.gmail.com>
	<58D3BF80-A360-4E40-883A-B3DE64DE1189@a-kretschmer.de>
	<20201105021012.GD1632@paquier.xyz>
	<1408355.1604546584@sss.pgh.pa.us>
	<20201106011028.GE21123@paquier.xyz>

Michael Paquier <michael@paquier.xyz> writes:
> (I got to wonder whether it would be worth the complexity to show more
> information when using _dosmaperr() for WIN32 on stuff like 
> elog(ERROR, "%m"), just a wild thought).

Maybe.  It's been in the back of my mind for a long time that the
_dosmaperr() mapping may be confusing us in some of these hard-to-explain
trouble reports.  It'd be great if we could see the original Windows error
code too.  Not quite sure how to mechanize that, though.  Places where we
do stuff like save-and-restore errno across some other operation would break
any easy solution.

			regards, tom lane





view thread (10+ messages)

Message-ID: <1533856.1604625591@sss.pgh.pa.us>
Permalink:  ../1533856.1604625591@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1533856.1604625591@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, andreas@a-kretschmer.de, sisraeli@illusivenetworks.com
  Subject: Re: PANIC: could not write to log file {} at offset {}, length {}: Invalid argument
  In-Reply-To: <1533856.1604625591@sss.pgh.pa.us>
  References: <CAHwa7Ea1R7kYuyEOKU6LW-tYMXJAM30zy9K+4iYW5TykAgKDgQ@mail.gmail.com> <58D3BF80-A360-4E40-883A-B3DE64DE1189@a-kretschmer.de> <20201105021012.GD1632@paquier.xyz> <1408355.1604546584@sss.pgh.pa.us> <20201106011028.GE21123@paquier.xyz> <1533856.1604625591@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox