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

Cannot run pagila-schema.sql in Postgres 10.5 #6

Closed
aa8y opened this issue Sep 30, 2018 · 2 comments
Closed

Cannot run pagila-schema.sql in Postgres 10.5 #6

aa8y opened this issue Sep 30, 2018 · 2 comments

Comments

@aa8y
Copy link

aa8y commented Sep 30, 2018

Error

2018-09-30 18:42:09.856 UTC [38] ERROR:  cannot create index on partitioned table "payment"
2018-09-30 18:42:09.856 UTC [38] STATEMENT:  CREATE INDEX idx_fk_customer_id ON payment USING btree (customer_id);
psql:/docker-entrypoint-initdb.d/pagila.sql:1102: ERROR:  cannot create index on partitioned table "payment"

How to reproduce

  1. Install Docker.
  2. Run docker run --rm aa8y/postgres-dataset:pagila

Code

See this and this

@sumodirjo
Copy link

Hello,
I tried to import pagila schema on PostgreSQL 10.11 on Ubuntu 16.04 (PostgreSQL 10.11 (Ubuntu 10.11-1.pgdg16.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609, 64-bit). Still got the following error message

ERROR:  cannot create index on partitioned table "payment"

Googling found [1] that refer to [2] which states basically local partitioned indexes support start from postgresql 11.

Do you mind to recheck and confirm about this @devrimgunduz ? perhaps updating README with limitation that this require PostgreSQL 11 to be run properly. Thank you.

[1] https://blog.dbi-services.com/local-partitioned-indexes-in-postgresql-11/
[2] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=8b08f7d4820fd7a8ef6152a9dd8c6e3cb01e5f99

@devrimgunduz
Copy link
Owner

Hi,

Thanks for the heads up. README now mentions that pagila can be used on PG 11+

Regards, Devrim

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

3 participants