Message-ID: From: "davecramer (@davecramer)" To: "pgjdbc/pgjdbc" Date: Wed, 05 Feb 2025 00:46:03 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3509: Add back application name setting In-Reply-To: References: List-Id: X-GitHub-Author-Login: davecramer X-GitHub-Comment-Id: 1942098623 X-GitHub-Comment-Type: review_comment X-GitHub-Commit: 9ef77ad39125a283fe56d42899eac94cea0f2afa X-GitHub-Issue: 3509 X-GitHub-Path: pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: review_comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3509#discussion_r1942098623 Content-Type: text/plain; charset=utf-8 (on pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java) Interesting as someone is setting APPLICATION_NAME ``` 16385 | test | 10879 | | 16384 | test | PostgreSQL JDBC Driver | 127.0.0.1 | | 52308 | 2025-02-04 19:43:53.65606-05 | | 2025-02-04 19:44:03.301573-05 | 2025-02-04 19:44:03.301968-05 | Client | ClientRead | idle | | | | SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 16386 AS oid , 1 AS attnum UNION ALL SELECT 16386, 2 UNION ALL SELECT 16386, 3) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) where c.oid in (16386) | client backend ```