Re: Printing LSN made easy
От
Tom Lane
Тема
Re: Printing LSN made easy
Дата
Msg-id
972603.1606669821@sss.pgh.pa.us
Ответ на
Re: Printing LSN made easy (Michael Paquier)
Список
Дерево обсуждения
Printing LSN made easy Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Re: Printing LSN made easy Alexey Kondratov <a.kondratov@postgrespro.ru>
Re: Printing LSN made easy Li Japin <japinli@hotmail.com>
Re: Printing LSN made easy Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Re: Printing LSN made easy Li Japin <japinli@hotmail.com>
Re: Printing LSN made easy Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Printing LSN made easy Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Re: Printing LSN made easy Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Printing LSN made easy Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Printing LSN made easy Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Printing LSN made easy Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Printing LSN made easy Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Printing LSN made easy Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Printing LSN made easy Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Printing LSN made easy Michael Paquier <michael@paquier.xyz>
Re: Printing LSN made easy Michael Paquier <michael@paquier.xyz>
Re: Printing LSN made easy Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Printing LSN made easy Michael Paquier <michael@paquier.xyz>
Re: Printing LSN made easy Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing LSN made easy Andres Freund <andres@anarazel.de>
Re: Printing LSN made easy Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Printing LSN made easy Craig Ringer <craig.ringer@enterprisedb.com>
Re: Printing LSN made easy Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: Printing LSN made easy Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Printing LSN made easy Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Michael Paquier writes: > On Fri, Nov 27, 2020 at 04:10:27PM +0530, Ashutosh Bapat wrote: >> Off list Craig Ringer suggested introducing a new format specifier >> similar to %m for LSN but I did not get time to take a look at the >> relevant code. AFAIU it's available only to elog/ereport, so may not >> be useful generally. But teaching printf variants about the new format >> would be the best solution. However, I didn't find any way to do that. > -1. %m maps to errno, that is much more generic. A set of macros > that maps to our internal format would be fine enough IMO. Agreed. snprintf.c is meant to implement a recognized standard (ok, %m is a GNU extension, but it's still pretty standard). I'm not on board with putting PG-only extensions in there. regards, tom lane
В списке pgsql-hackers по дате отправления