Skip to content

Commit ec841ec

Browse files
authored
Merge pull request #27 from PostHog/fix/postgres-version-function
Add PostgreSQL-compatible version() function
2 parents 004d82e + 1cff5e8 commit ec841ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/catalog.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ func initPgCatalog(db *sql.DB) error {
270270
END`,
271271
// pg_is_in_recovery - check if in recovery mode
272272
`CREATE OR REPLACE MACRO pg_is_in_recovery() AS false`,
273+
// version - return PostgreSQL-compatible version string
274+
// Fivetran and other tools check this to determine compatibility
275+
`CREATE OR REPLACE MACRO version() AS 'PostgreSQL 15.0 on x86_64-pc-linux-gnu, compiled by gcc, 64-bit (Duckgres/DuckDB)'`,
273276
}
274277

275278
for _, f := range functions {

0 commit comments

Comments
 (0)