diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2007-12-11 20:07:31 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2007-12-11 20:07:31 +0000 |
commit | 230e8962f3a47cae4729ad7c017410d28caf1370 (patch) | |
tree | cc4c0c9f59ec58bf63a4c7ad83b44f88ad08bf3b /src/backend | |
parent | 1ebff9ba81afbb885d8c34d7e4e975f5cdbe9a4a (diff) | |
download | postgresql-230e8962f3a47cae4729ad7c017410d28caf1370.tar.gz postgresql-230e8962f3a47cae4729ad7c017410d28caf1370.zip |
Make CSV column ordering a bit more logical.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/utils/error/elog.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index 57bd3b5036f..daef42c3c16 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -42,7 +42,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.199 2007/12/11 15:19:05 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.200 2007/12/11 20:07:31 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -1667,7 +1667,6 @@ write_csvlog(ErrorData *edata) initStringInfo(&buf); - /* * timestamp with milliseconds * @@ -1715,8 +1714,9 @@ write_csvlog(ErrorData *edata) appendCSVLiteral(&buf, MyProcPort->database_name); appendStringInfoChar(&buf, ','); - /* session id */ - appendStringInfo(&buf, "%lx.%x", (long) MyStartTime, MyProcPid); + /* Process id */ + if (MyProcPid != 0) + appendStringInfo(&buf, "%d", MyProcPid); appendStringInfoChar(&buf, ','); /* Remote host and port */ @@ -1730,9 +1730,8 @@ write_csvlog(ErrorData *edata) } appendStringInfoChar(&buf, ','); - /* Process id */ - if (MyProcPid != 0) - appendStringInfo(&buf, "%d", MyProcPid); + /* session id */ + appendStringInfo(&buf, "%lx.%x", (long) MyStartTime, MyProcPid); appendStringInfoChar(&buf, ','); /* Line number */ |