> SHOW PORT;> test=> SELECT setting FROM pg_settings WHERE name = 'port'; setting --------- 5432
Both of these are from a query context. This is in a C module, I suppose Icould run a query but there has to be a direct C function to get this data.