Skip to content

Retain client_address on Postgres connection when using Private IP #600

Open
@fatmcgav

Description

@fatmcgav

Question

We're currently rewriting a number of our Golang services to use cloudsqlconn and overall things are working great.

However one thing that we've spotted is that there's no client_address reported on the connections within Postgres, even if we're using the instance private IP to connect.
However if we connect using psql from the same pod using the same details then the client_address is recorded.

So is there a specific reason why the client_address isn't being reported when connecting via cloudsqlconn using the private IP?

Code

No response

Additional Details

No response

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.type: questionRequest for information or clarification.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions