I am connecting to a Postgres server (PostgreSQL 8.4.13 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4), 64-bit) successfully.
I can see the information_schema, pg_catalog, public, etc dbs and can see the list of tables in the lh column but when I try to select a table, the log shows the following SELECT running
STRING_AGG(distinct kcu.column_name, ',') AS columns, ccu.table_schema AS ref_schema, ccu.table_name AS ref_table,
STRING_AGG(distinct ccu.column_name, ',') AS ref_columns,
STRING_AGG(distinct kcu.ordinal_position::text, ',') AS ord_position
FROM information_schema.referential_constraints AS refc, information_schema.key_column_usage AS kcu, information_schema.constraint_column_usage AS ccu
WHERE refc.constraint_schema = 'public'
AND refc.constraint_name = kcu.constraint_name
AND refc.constraint_schema = kcu.table_schema
AND ccu.constraint_name = refc.constraint_name
AND kcu.table_name = 'activities'
GROUP BY refc.constraint_name, refc.update_rule, refc.delete_rule, kcu.table_name, ccu.table_schema, ccu.table_name
ORDER BY ord_position;
and the error
LINE 2: STRING_AGG(distinct kcu.column_name, ',') AS columns, ccu....*
followed by similar errors.
I also get the more obvious error
SELECT "pid", "usename", "client_addr", "datname", application_name , EXTRACT(EPOCH FROM CURRENT_TIMESTAMP - "query_start")::INTEGER, "state", "query" FROM "pg_stat_activity";
/* ERROR: column "pid" does not exist
Indeed, the column "pid" doesn't exist in pg_stat_activity - it should be "procpid" (and application_name and state don't exist)
So, it looks like my Heidi version (11.0.0.5919 (64 Bit) is not compatible with Postgres 8.4 - is there a way I can find out which version I should be using or is thereanother fix?
Thanks, Nick