[BUGS] BUG #7970: How 's list all members in a special tablespace ( not as pg_global & pg_default )
The following bug has been logged on the website: Bug reference: 7970 Logged by: How 's list all members in a special tablespace Email address: sunny1...@yahoo.com.vn PostgreSQL version: 9.0.4 Operating system: Enterpride linux 5 x86_64 Description: I tried this, which will get the list of tables belong to 'XYZ' tablespace. CREATE TABLESPACE TBS1 OWNER access LOCATION '/u03/tbs'; --> OK Create table public.SinhVien ( MaSV text, TenSV text, Sodt int ) tablespace TBS1; --> OK Insert into public.SinhVien (MaSV,TenSV,Sodt) Values ('001','Nguyen Van',123456789),('002','Nguyen Ha',987654321); --> OK select relname from pg_class where reltablespace=(select oid from pg_tablespace where spcname='TBS1'); relname - (0 rows) why's return 0 rows ? i don't know please help me. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs
Re: [BUGS] BUG #7970: How 's list all members in a special tablespace ( not as pg_global & pg_default )
On 19.03.2013 10:19, sunny1...@yahoo.com.vn wrote: I tried this, which will get the list of tables belong to 'XYZ' tablespace. CREATE TABLESPACE TBS1 OWNER access LOCATION '/u03/tbs'; --> OK Create table public.SinhVien ( MaSV text, TenSV text, Sodt int ) tablespace TBS1; --> OK Insert into public.SinhVien (MaSV,TenSV,Sodt) Values ('001','Nguyen Van',123456789),('002','Nguyen Ha',987654321); --> OK select relname from pg_class where reltablespace=(select oid from pg_tablespace where spcname='TBS1'); relname -0 (0 rows) why's return 0 rows ? i don't know You didn't quote the tablespace name in the CREATE TABLESPACE statement, so it's actually called tbs1, in lower case. Try: select relname from pg_class where reltablespace=(select oid from pg_tablespace where spcname='tbs1'); - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs
[BUGS] BUG #7971: Xml special symbols are not unescaped when gettting value of Xml via xpath
The following bug has been logged on the website: Bug reference: 7971 Logged by: Vilen Email address: v.tambovt...@live.ru PostgreSQL version: 9.2.3 Operating system: Windows Description: I've found this bug has already been discussed with no result http://postgresql.1045698.n5.nabble.com/XMLATTRIBUTES-vs-values-of-type-XML-tt4636331.html#none SELECT unnest(xpath('/name/text()', xmlelement(name name, 'AT&T', null ))) This gives me 'AT&T' and I have NO WAY inside pgsql to get 'At&t' value -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs