Thread: PATCH: move object to....(tablespace context)
Hi Ashesh,
I have created a patch regarding an issue in pgadmin related to tablespace context.Issue:
ERROR: syntax error at or near "MOVE"
Reason:
As mentioned in commit id: 3c4cf080879b386d4ed1814667aca025caafe608
in PostgreSQL database, ALTER TABLESPACE src MOVE dest OWNED BY username syntax has been changed
in PostgreSQL database, ALTER TABLESPACE src MOVE dest OWNED BY username syntax has been changed
Current implementation in postgreSQL db is as below:
ALTER TABLE/INDEX/MATERIALIZED VIEW ALL IN TABLESPACE src OWNED BY username SET TABLESPACE dest
Changes made:
Changes made to generate sql as per current implementation in PostgreSQL.
Regards,
Sanket Mehta
Sr Software engineer
Enterprisedb
Attachment
Hi Ashesh,
PFA the updated patch which includes the changes you have suggested.Regards,
Sanket Mehta
Sr Software engineer
Enterprisedb
On Mon, Oct 12, 2015 at 4:55 PM, Sanket Mehta <sanket.mehta@enterprisedb.com> wrote:
Please do review and commit it.While moving Table/Index/materialized view/All to another tablespace, pgadmin gives error mentioned below:Hi Ashesh,I have created a patch regarding an issue in pgadmin related to tablespace context.
Issue:
ERROR: syntax error at or near "MOVE"
Reason:As mentioned in commit id: 3c4cf080879b386d4ed1814667aca025caafe608
in PostgreSQL database, ALTER TABLESPACE src MOVE dest OWNED BY username syntax has been changedCurrent implementation in postgreSQL db is as below:ALTER TABLE/INDEX/MATERIALIZED VIEW ALL IN TABLESPACE src OWNED BY username SET TABLESPACE destChanges made:Changes made to generate sql as per current implementation in PostgreSQL.Regards,Sanket MehtaSr Software engineerEnterprisedb
Attachment
On Mon, Oct 12, 2015 at 6:28 PM, Sanket Mehta <sanket.mehta@enterprisedb.com> wrote:
Please do review and commit it.Hi Ashesh,PFA the updated patch which includes the changes you have suggested.
Hi Sanket,
Thanks for the patch.
It has been committed.
Regards,Sanket MehtaSr Software engineerEnterprisedbOn Mon, Oct 12, 2015 at 4:55 PM, Sanket Mehta <sanket.mehta@enterprisedb.com> wrote:Please do review and commit it.While moving Table/Index/materialized view/All to another tablespace, pgadmin gives error mentioned below:Hi Ashesh,I have created a patch regarding an issue in pgadmin related to tablespace context.
Issue:
ERROR: syntax error at or near "MOVE"
Reason:As mentioned in commit id: 3c4cf080879b386d4ed1814667aca025caafe608
in PostgreSQL database, ALTER TABLESPACE src MOVE dest OWNED BY username syntax has been changedCurrent implementation in postgreSQL db is as below:ALTER TABLE/INDEX/MATERIALIZED VIEW ALL IN TABLESPACE src OWNED BY username SET TABLESPACE destChanges made:Changes made to generate sql as per current implementation in PostgreSQL.Regards,Sanket MehtaSr Software engineerEnterprisedb