Skip to content

CREATE INDEX CONCURRENTLY cannot run inside a transaction block #177

@jaffarhussain1011

Description

@jaffarhussain1011

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions