You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Connection log import fails on Postgres 13 (W) #283
Running the function classdb.importConnectionLog on an instance of Postgres 13 fails to import any data. Here is an example of the result table the function returns when the function is run without any parameter:
logdate
numconnections
numdisconnections
info
2021-02-26T00:00:00Z
0
0
extra data after last expected column
The failure to import is due to an exception, but the content of the column info in the result table does not include any hint there was an exception.
I have confirmed again that the issue is indeed due to the missing column added in Postgres 13. I have also verified that the following code to conditionally add the missing column works if the server version is later than 12.x. I have tested this patch only on Postgres 13.1. It needs to be tested on 13.0 and any version earlier than 13.0. This code should added immediately after temp table ImportedLogData is created.
IF ClassDB.isServerVersionAfter('12', FALSE) THEN
ALTERTABLE ImportedLogData ADD COLUMN backend_type TEXT;
END IF;
I no longer feel that a prefix exception: should be included in the values of info column, because that column presently gets a value only when there is an exception. In all other cases, that column's value is NULL. I suggest revising this issue if the column is ever populated when there are no exceptions. Thus, I'm removing the "missing" characterization from the issue title.
Activity
[-]Connection log import fails on Postgres 13 (W)[/-][+]Connection log import fails on Postgres 13 (WM)[/+]smurthys commentedon Feb 27, 2021
I have confirmed again that the issue is indeed due to the missing column added in Postgres 13. I have also verified that the following code to conditionally add the missing column works if the server version is later than 12.x. I have tested this patch only on Postgres 13.1. It needs to be tested on 13.0 and any version earlier than 13.0. This code should added immediately after temp table
ImportedLogDatais created.smurthys commentedon Feb 27, 2021
I no longer feel that a prefix
exception:should be included in the values ofinfocolumn, because that column presently gets a value only when there is an exception. In all other cases, that column's value isNULL. I suggest revising this issue if the column is ever populated when there are no exceptions. Thus, I'm removing the "missing" characterization from the issue title.[-]Connection log import fails on Postgres 13 (WM)[/-][+]Connection log import fails on Postgres 13 (W)[/+]