Fix server stats display for EPAS 9.2, where inet needs casting to text for concatenation. Fixes #1831

This commit is contained in:
Dave Page 2017-05-17 15:53:13 +01:00
parent a3226b1eb5
commit 17de7db70b
3 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ SELECT
WHEN client_hostname IS NOT NULL AND client_hostname != '' THEN
client_hostname || ':' || client_port
WHEN client_addr IS NOT NULL AND client_addr::text != '' THEN
client_addr || ':' || client_port
client_addr::text || ':' || client_port
WHEN client_port = -1 THEN
'local pipe'
ELSE
@ -32,7 +32,7 @@ SELECT
WHEN client_hostname IS NOT NULL AND client_hostname != '' THEN
client_hostname || ':' || client_port
WHEN client_addr IS NOT NULL AND client_addr::text != '' THEN
client_addr || ':' || client_port
client_addr::text || ':' || client_port
WHEN client_port = -1 THEN
'local pipe'
ELSE

View File

@ -7,7 +7,7 @@ SELECT
WHEN client_hostname IS NOT NULL AND client_hostname != '' THEN
client_hostname || ':' || client_port
WHEN client_addr IS NOT NULL AND client_addr::text != '' THEN
client_addr || ':' || client_port
client_addr::text || ':' || client_port
WHEN client_port = -1 THEN
'local pipe'
ELSE
@ -33,7 +33,7 @@ SELECT
WHEN client_hostname IS NOT NULL AND client_hostname != '' THEN
client_hostname || ':' || client_port
WHEN client_addr IS NOT NULL AND client_addr::text != '' THEN
client_addr || ':' || client_port
client_addr::text || ':' || client_port
WHEN client_port = -1 THEN
'local pipe'
ELSE

View File

@ -7,7 +7,7 @@ SELECT
WHEN client_hostname IS NOT NULL AND client_hostname != '' THEN
client_hostname || ':' || client_port
WHEN client_addr IS NOT NULL AND client_addr::text != '' THEN
client_addr || ':' || client_port
client_addr::text || ':' || client_port
WHEN client_port = -1 THEN
'local pipe'
ELSE
@ -32,7 +32,7 @@ SELECT
WHEN client_hostname IS NOT NULL AND client_hostname != '' THEN
client_hostname || ':' || client_port
WHEN client_addr IS NOT NULL AND client_addr::text != '' THEN
client_addr || ':' || client_port
client_addr::text || ':' || client_port
WHEN client_port = -1 THEN
'local pipe'
ELSE