Skip to content

Commit

Permalink
Rename PostgresScanTableFunction
Browse files Browse the repository at this point in the history
Because this can conflict with DuckDB's `postgres` extension which check scanner by name eg. https://github.com/duckdb/duckdb-postgres/blob/8461ed8b6f726564934e9c831cdc88d431e3148f/src/storage/postgres_insert.cpp#L193-L195
  • Loading branch information
Y-- committed Feb 14, 2025
1 parent 3789e4c commit 112e073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scan/postgres_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ PostgresScanFunctionData::~PostgresScanFunctionData() {
//

PostgresScanTableFunction::PostgresScanTableFunction()
: TableFunction("postgres_scan", {}, PostgresScanFunction, nullptr, PostgresScanInitGlobal, PostgresScanInitLocal) {
: TableFunction("pgduckdb_postgres_scan", {}, PostgresScanFunction, nullptr, PostgresScanInitGlobal, PostgresScanInitLocal) {
named_parameters["cardinality"] = duckdb::LogicalType::UBIGINT;
named_parameters["relid"] = duckdb::LogicalType::UINTEGER;
named_parameters["snapshot"] = duckdb::LogicalType::POINTER;
Expand Down

0 comments on commit 112e073

Please sign in to comment.