Skip to content

Instantly share code, notes, and snippets.

View HannahVernon's full-sized avatar

Hannah Vernon HannahVernon

View GitHub Profile
@HannahVernon
HannahVernon / test-infomessage-diagnostic.ps1
Created May 15, 2026 15:41
psqlODBC RAISE NOTICE duplication diagnostic - tests raw, split, and dedup InfoMessage handlers
<#
.SYNOPSIS
Diagnostic tool for testing PostgreSQL ODBC InfoMessage behavior.
.DESCRIPTION
Runs a small SQL script with 5 RAISE NOTICE statements and logs
every InfoMessage event to help diagnose duplicate/cumulative
message behavior in the PostgreSQL ODBC driver.
Three handler variants are tested in sequence: