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

CREATE INDEX CONCURRENTLY cannot run inside a transaction block #177

Open
jaffarhussain1011 opened this issue Jun 13, 2017 · 0 comments
Open

Comments

@jaffarhussain1011
Copy link

jaffarhussain1011 commented Jun 13, 2017

Hi,

I am using execute method and getting following error:

Base.php(381) : pg_query(): Query failed: ERROR: CREATE INDEX CONCURRENTLY cannot run inside a transaction block

My exact query is as following:
$this->get_adapter()->execute_ddl("DROP INDEX IF EXISTS ix_events_type_cd;");
$this->get_adapter()->execute_ddl("CREATE INDEX CONCURRENTLY IF NOT EXISTS
ix_events_type_cd ON public.xtable USING btree (type_cd);");

I am using postgres,
Any would be appreciated.

thanks,
Jaffar

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