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

AMQ-6826 #260

Closed
wants to merge 3 commits into from
Closed

AMQ-6826 #260

wants to merge 3 commits into from

Conversation

1984shekhar
Copy link

@1984shekhar 1984shekhar commented Oct 3, 2017

This fix adds the table-prefix to the activemq_acks_pkey. This is because for postgresql if we use table-prefix statement than Indexes are also created using table-prefix. This table-prefix is empty-string if not set so shouldn't affect normal scenario.

Output from postegre db.
activemq=# \d local_activemq_acks
Table "public.local_activemq_acks"
Column | Type | Modifiers
---------------+------------------------+--------------------
container | character varying(250) | not null
sub_dest | character varying(250) |
client_id | character varying(250) | not null
sub_name | character varying(250) | not null
selector | character varying(250) |
last_acked_id | bigint |
priority | bigint | not null default 5
xid | character varying(250) |
Indexes:
"local_activemq_acks_pkey" PRIMARY KEY, btree (container, client_id, sub_name)
"local_activemq_acks_xidx" btree (xid)

cpandey added 3 commits October 3, 2017 18:11
PostgresqlJDBCAdapter with table prefix errors when executing
createSchemaStatements for creating Indexes.
PostgresqlJDBCAdapter with table prefix errors when executing
createSchemaStatements for creating Indexes.
createSchemaStatements for creating Indexes.
@1984shekhar
Copy link
Author

It can be easily configured with below. Hence closing pull request as fix is not necessary.


@1984shekhar 1984shekhar closed this Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant