Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support system columns #25

Open
ktny opened this issue Nov 12, 2024 · 1 comment
Open

Support system columns #25

ktny opened this issue Nov 12, 2024 · 1 comment

Comments

@ktny
Copy link

ktny commented Nov 12, 2024

What happens?

SELECT ctid FROM columnstore_table causes an error.

To Reproduce

create table columnstore_table (id int) using columnstore;
select ctid from columnstore_table;

ERROR:  (PGDuckDB/CreatePlan) Prepared query returned an error: 'Binder Error: Referenced column "ctid" not found in FROM clause!
Candidate bindings: "columnstore_table.id"
LINE 1: SELECT ctid FROM pgmooncake.public.columnstore...

In a heap table, ctid can be used.

create table heap_table (id int);
select ctid from heap_table;

 ctid
------
(0 rows)

OS:

Debian GNU/Linux 12 (bookworm)

pg_mooncake Version:

latest docker image

Postgres Version:

17.0

Are you using pg_mooncake Docker, Neon, or the extension standalone?

pg_mooncake Docker Image

@ktny ktny added the bug Something isn't working label Nov 12, 2024
@dpxcc
Copy link
Contributor

dpxcc commented Nov 12, 2024

Thanks for the feature request!
We've filed a feature request upstream: duckdb/pg_duckdb#430

@dpxcc dpxcc added feature pg_duckdb feature and removed bug Something isn't working labels Nov 12, 2024
@dpxcc dpxcc changed the title Error when selecting ctid Support system columns Nov 12, 2024
@dpxcc dpxcc added this to the tbd milestone Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants