pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedFailed in moving database objects to another tablespace
3+ messages / 3 participants
[nested] [flat]
* Failed in moving database objects to another tablespace
@ 2015-06-11 02:41 liuyuanyuan <liuyuanyuangogo@gmail.com>
2015-06-11 22:59 ` Re: Failed in moving database objects to another tablespace Euler Taveira <euler@timbira.com.br>
0 siblings, 1 reply; 3+ messages in thread
From: liuyuanyuan @ 2015-06-11 02:41 UTC (permalink / raw)
To: pgsql-admin; pgsql-docs@postgresql.org
Hi !
I installed my postgresql and pgadmin III with an windows 32bit installer.
My environment:
Windows7 64bit
Postgresql 9.4.0
Pgadmin III 1.20.0
Then I found the new function in pgadmin III : move database objects to
another tablespace.
First, I tried to execute this function and failed, just as follow (PS: the
ok and cancle button cannot display well, please check):
Then, I tried to execute an sql command like this:
ALTER TABLESPACE pg_default MOVE TABLES OWNED BY yy TO "table";
And I still got an error:
ERROR: syntax error at or near "MOVE"
LINE 1: ALTER tablespace pg_default MOVE TABLES OWNED BY yy TO "tabl...
^
Then I ckeck the Postgresql Document of www.postgresql.org , and I couldn't
find the Syntaxs: ALTER TABLESPACE . MOVE.
So I have to report this problem. Hope to get some reply!
Thanks and Regards!
Liu Yuanyuan
Blog: http://my.oschina.net/liuyuanyuangogo
Attachments:
image001.png (image/png, 83.4K) download
view image
image002.png (image/png, 54.8K) download
view image
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Failed in moving database objects to another tablespace
2015-06-11 02:41 Failed in moving database objects to another tablespace liuyuanyuan <liuyuanyuangogo@gmail.com>
@ 2015-06-11 22:59 ` Euler Taveira <euler@timbira.com.br>
2015-06-12 01:26 ` Re: Failed in moving database objects to another tablespace JasmineLiu <liuyuanyuangogo@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Euler Taveira @ 2015-06-11 22:59 UTC (permalink / raw)
To: liuyuanyuan <liuyuanyuangogo@gmail.com>; pgsql-admin; pgsql-docs@postgresql.org
On 10-06-2015 23:41, liuyuanyuan wrote:
> Then, I tried to execute an sql command like this:
>
> ALTER TABLESPACE pg_default MOVE TABLES OWNED BY yy TO "table";
>
This syntax was changed _before_ 9.4 release. The new syntax is:
ALTER TABLE ALL IN TABLESPACE foo SET TABLESPACE bar;
The problem is in pgAdmin. I bet you're running a pgAdmin beta version
or something like that. Could you confirm the exact pgAdmin version?
--
Euler Taveira Timbira - http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Failed in moving database objects to another tablespace
2015-06-11 02:41 Failed in moving database objects to another tablespace liuyuanyuan <liuyuanyuangogo@gmail.com>
2015-06-11 22:59 ` Re: Failed in moving database objects to another tablespace Euler Taveira <euler@timbira.com.br>
@ 2015-06-12 01:26 ` JasmineLiu <liuyuanyuangogo@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: JasmineLiu @ 2015-06-12 01:26 UTC (permalink / raw)
To: pgsql-docs@postgresql.org
Euler Taveira wrote
> On 10-06-2015 23:41, liuyuanyuan wrote:
>> Then, I tried to execute an sql command like this:
>>
>> ALTER TABLESPACE pg_default MOVE TABLES OWNED BY yy TO "table";
>>
> This syntax was changed _before_ 9.4 release. The new syntax is:
>
> ALTER TABLE ALL IN TABLESPACE foo SET TABLESPACE bar;
>
> The problem is in pgAdmin. I bet you're running a pgAdmin beta version
> or something like that. Could you confirm the exact pgAdmin version?
>
>
> --
> Euler Taveira Timbira - http://www.timbira.com.br/
> PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
>
>
> --
> Sent via pgsql-docs mailing list (
> pgsql-docs@
> )
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-docs
Thanks for your replay!
That's all about my pgadmin, please check!
<http://postgresql.nabble.com/file/n5853510/QQ%E6%88%AA%E5%9B%BE20150611101253.jpg;
Regards!
Liu Yuanyuan
--
View this message in context: http://postgresql.nabble.com/Failed-in-moving-database-objects-to-another-tablespace-tp5853305p58535...
Sent from the PostgreSQL - docs mailing list archive at Nabble.com.
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2015-06-12 01:26 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-11 02:41 Failed in moving database objects to another tablespace liuyuanyuan <liuyuanyuangogo@gmail.com>
2015-06-11 22:59 ` Euler Taveira <euler@timbira.com.br>
2015-06-12 01:26 ` JasmineLiu <liuyuanyuangogo@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox