Skip to content

Cannot read from pg_catalog #475

@mcrumiller

Description

@mcrumiller

What are you using?

Python 3.9, cx 0.3.1, PostgrSQL (Greenplum)

Can you describe your bug?

Cannot query the pg_catalog system table for database information.

What are the steps to reproduce the behavior?

import connectorx as cx

conn = f"postgresql://{user}:{pw}1@{server}:{port}/{database}"

# this query errors in cx, not in pandas or via other SQL clients
result = cx.read_sql(conn.conn, "SELECT * FROM pg_catalog.pg_tables")
thread '<unnamed>' panicked at 'not implemented: name', D:\a\connector-x\connector-x\connectorx\src\sources\postgres\typesystem.rs:100:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
  df = cx.read_sql(conn.conn, "SELECT * FROM pg_catalog.pg_tables")
  File "C:\Projects\python-toolbox\.venv_toolbox\lib\site-packages\connectorx\__init__.py", line 224, in read_sql
    result = _read_sql(
pyo3_runtime.PanicException: not implemented: name

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions