Skip to content

Don't include NOTIFY payload in fingerprints.#353

Open
duckinator wants to merge 1 commit into
pganalyze:18-latestfrom
duckinator:fingerprint-notify
Open

Don't include NOTIFY payload in fingerprints.#353
duckinator wants to merge 1 commit into
pganalyze:18-latestfrom
duckinator:fingerprint-notify

Conversation

@duckinator

@duckinator duckinator commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

_fingerprintNotifyStmt previously fingerprinted the payload, which meant NOTIFY statements with different payloads produced different fingerprints.

Now the payload is ignored, bringing it in line with existing (intentional) behavior for the channel name of focusing on the structure, not data.

@duckinator
duckinator force-pushed the fingerprint-notify branch 2 times, most recently from 5fb7170 to a06d7a5 Compare July 14, 2026 17:11
Comment thread src/include/pg_query_fingerprint_defs.c
@duckinator
duckinator force-pushed the fingerprint-notify branch from a06d7a5 to 48046fa Compare July 22, 2026 22:13
@duckinator
duckinator marked this pull request as ready for review July 22, 2026 22:14

@seanlinsley seanlinsley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add tests to confirm the fingerprint stays the same with different payloads?

`_fingerprintNotifyStmt` previously fingerprinted the payload, which
meant NOTIFY statements with different payloads produced different
fingerprints.

Now the payload is ignored, bringing it in line with existing (intentional)
behavior for the channel name of focusing on the structure, not data.
@duckinator
duckinator force-pushed the fingerprint-notify branch from 48046fa to 07b478d Compare July 23, 2026 22:06
@duckinator

Copy link
Copy Markdown
Contributor Author

@seanlinsley sorry about that, looks like they got lost when I re-did the PR. added the tests I had originally. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants