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

ERROR: deletes on append-only tables are not supported in serializable transactions #238

Open
2 tasks done
wonb168 opened this issue Jul 3, 2024 · 0 comments
Open
2 tasks done

Comments

@wonb168
Copy link

wonb168 commented Jul 3, 2024

What happens?

ERROR: deletes on append-only tables are not supported in serializable transactions

To Reproduce

I am computing in DuckDB and then writing the results back to Greenplum. Before writing, I need to delete existing data, but I tried two methods:

delete from gp.dm.fct_sale_stockorg_kpi 
where day_date > ('2024-07-04'::timestamp - '40 day'::interval) and day_date <= ('2024-07-04'::timestamp)

method2:

call postgres_execute('gp',$gp$
delete from dm.fct_sale_stockorg_kpi 
where day_date > ('2024-07-04'::timestamp - '40 day'::interval) and day_date <= ('2024-07-04'::timestamp)
$gp$)

the first method is very slow,
and the second method gives an error as described in the title.
why?

OS:

centos7

PostgreSQL Version:

gp7.1(pg12.12)

DuckDB Version:

1.0.0

DuckDB Client:

python3.9

Full Name:

wang cz

Affiliation:

Linezone

Have you tried this on the latest main branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant