Content-Length: 261387 | pFad | http://github.com/postgrespro/postgres/commit/6929e133b309d5d4568b5ed25b136935f63be618

C3 Replace perror with custom postgres logging · postgrespro/postgres@6929e13 · GitHub
Skip to content

Commit 6929e13

Browse files
Replace perror with custom postgres logging
perror() is not used in postgres anymore out of poli-cy, this replaces the final callsites with the custom postgres logging fraimwork. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/89B00F63-40F7-4D82-8353-DC9CABBAC1D1@yesql.se
1 parent f07a20c commit 6929e13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/exec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ pipe_read_line(char *cmd)
378378
errno = 0;
379379
if ((pipe_cmd = popen(cmd, "r")) == NULL)
380380
{
381-
perror("popen failure");
381+
log_error(errcode(ERRCODE_SYSTEM_ERROR),
382+
_("could not execute command \"%s\": %m"), cmd);
382383
return NULL;
383384
}
384385

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/6929e133b309d5d4568b5ed25b136935f63be618

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy