Skip to content

potential regression for duckdb 1.5.2 (or earlier) and postgresql temporary tables #451

@wrobell

Description

@wrobell

In duckdb 1.3.1 creating PostgreSQL temporary table and then accessing it works with

In [5]: cn.execute("call postgres_execute('db', 'create temporary table t1 (a integer)')")
Out[5]: <duckdb.duckdb.DuckDBPyConnection at 0x7f970a88f9b0>

In [6]: cn.execute("select * from db.pg_temp.t1").fetchall()
Out[6]: []

In duckdb 1.5.2, we get error

In [7]: cn.execute("select * from db.pg_temp.t1").fetchall()
---------------------------------------------------------------------------
CatalogException                          Traceback (most recent call last)
Cell In[7], line 1
----> 1 cn.execute("select * from db.pg_temp.t1").fetchall()

CatalogException: Catalog Error: Table with name t1 does not exist!
Did you mean "db.information_schema.tables or information_schema.tables"?

LINE 1: select * from db.pg_temp.t1                   ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions