From: Tatsuo Ishii Date: Tue, 18 Jan 2000 03:00:37 +0000 (+0000) Subject: Adopt for new psql X-Git-Tag: REL7_0~811 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=beba98d14aa4159fb795139a6fe7d329979dadda;p=postgresql Adopt for new psql --- diff --git a/src/test/mb/expected/euc_jp.out b/src/test/mb/expected/euc_jp.out index b0bdfbac9a..6f38e998a8 100644 --- a/src/test/mb/expected/euc_jp.out +++ b/src/test/mb/expected/euc_jp.out @@ -1,87 +1,87 @@ -QUERY: drop table ·×»»µ¡ÍѸì; +drop table ·×»»µ¡ÍѸì; ERROR: Relation '·×»»µ¡ÍѸì' does not exist -QUERY: create table ·×»»µ¡ÍѸì (ÍѸì text, ʬÎॳ¡¼¥É varchar, È÷¹Í1A¤À¤è char(16)); -QUERY: create index ·×»»µ¡ÍѸìindex1 on ·×»»µ¡ÍѸì using btree (ÍѸì); -QUERY: create index ·×»»µ¡ÍѸìindex2 on ·×»»µ¡ÍѸì using hash (ʬÎॳ¡¼¥É); -QUERY: insert into ·×»»µ¡ÍѸì values('¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤','µ¡A01¾å'); -QUERY: insert into ·×»»µ¡ÍѸì values('¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹','ʬB10Ãæ'); -QUERY: insert into ·×»»µ¡ÍѸì values('¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼','¿ÍZ01²¼'); -QUERY: vacuum ·×»»µ¡ÍѸì; -QUERY: select * from ·×»»µ¡ÍѸì; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è ---------------------------+----------+---------- -¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ |µ¡A01¾å | -¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹|ʬB10Ãæ | -¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ |¿ÍZ01²¼ | +create table ·×»»µ¡ÍѸì (ÍѸì text, ʬÎॳ¡¼¥É varchar, È÷¹Í1A¤À¤è char(16)); +create index ·×»»µ¡ÍѸìindex1 on ·×»»µ¡ÍѸì using btree (ÍѸì); +create index ·×»»µ¡ÍѸìindex2 on ·×»»µ¡ÍѸì using hash (ʬÎॳ¡¼¥É); +insert into ·×»»µ¡ÍѸì values('¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤','µ¡A01¾å'); +insert into ·×»»µ¡ÍѸì values('¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹','ʬB10Ãæ'); +insert into ·×»»µ¡ÍѸì values('¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼','¿ÍZ01²¼'); +vacuum ·×»»µ¡ÍѸì; +select * from ·×»»µ¡ÍѸì; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è +----------------------------+------------+------------ + ¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ | µ¡A01¾å | + ¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹ | ʬB10Ãæ | + ¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ | ¿ÍZ01²¼ | (3 rows) -QUERY: select * from ·×»»µ¡ÍѸì where ʬÎॳ¡¼¥É = '¿ÍZ01²¼'; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è -------------------------+----------+---------- -¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼|¿ÍZ01²¼ | +select * from ·×»»µ¡ÍѸì where ʬÎॳ¡¼¥É = '¿ÍZ01²¼'; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è +--------------------------+------------+------------ + ¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ | ¿ÍZ01²¼ | (1 row) -QUERY: select * from ·×»»µ¡ÍѸì where ʬÎॳ¡¼¥É ~* '¿Íz01²¼'; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è -------------------------+----------+---------- -¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼|¿ÍZ01²¼ | +select * from ·×»»µ¡ÍѸì where ʬÎॳ¡¼¥É ~* '¿Íz01²¼'; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è +--------------------------+------------+------------ + ¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ | ¿ÍZ01²¼ | (1 row) -QUERY: select * from ·×»»µ¡ÍѸì where ʬÎॳ¡¼¥É like '_Z01_'; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è -------------------------+----------+---------- -¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼|¿ÍZ01²¼ | +select * from ·×»»µ¡ÍѸì where ʬÎॳ¡¼¥É like '_Z01_'; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è +--------------------------+------------+------------ + ¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ | ¿ÍZ01²¼ | (1 row) -QUERY: select * from ·×»»µ¡ÍѸì where ʬÎॳ¡¼¥É like '_Z%'; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è -------------------------+----------+---------- -¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼|¿ÍZ01²¼ | +select * from ·×»»µ¡ÍѸì where ʬÎॳ¡¼¥É like '_Z%'; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è +--------------------------+------------+------------ + ¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ | ¿ÍZ01²¼ | (1 row) -QUERY: select * from ·×»»µ¡ÍѸì where ÍѸì ~ '¥³¥ó¥Ô¥å¡¼¥¿[¥Ç¥°]'; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è ---------------------------+----------+---------- -¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ |µ¡A01¾å | -¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹|ʬB10Ãæ | +select * from ·×»»µ¡ÍѸì where ÍѸì ~ '¥³¥ó¥Ô¥å¡¼¥¿[¥Ç¥°]'; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è +----------------------------+------------+------------ + ¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ | µ¡A01¾å | + ¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹ | ʬB10Ãæ | (2 rows) -QUERY: select * from ·×»»µ¡ÍѸì where ÍѸì ~* '¥³¥ó¥Ô¥å¡¼¥¿[¥Ç¥°]'; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è ---------------------------+----------+---------- -¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ |µ¡A01¾å | -¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹|ʬB10Ãæ | +select * from ·×»»µ¡ÍѸì where ÍѸì ~* '¥³¥ó¥Ô¥å¡¼¥¿[¥Ç¥°]'; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è +----------------------------+------------+------------ + ¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ | µ¡A01¾å | + ¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹ | ʬB10Ãæ | (2 rows) -QUERY: select *,character_length(ÍѸì) from ·×»»µ¡ÍѸì; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è|length ---------------------------+----------+----------+------ -¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ |µ¡A01¾å | | 12 -¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹|ʬB10Ãæ | | 13 -¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ |¿ÍZ01²¼ | | 12 +select *,character_length(ÍѸì) from ·×»»µ¡ÍѸì; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è | length +----------------------------+------------+------------+-------- + ¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ | µ¡A01¾å | | 12 + ¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹ | ʬB10Ãæ | | 13 + ¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ | ¿ÍZ01²¼ | | 12 (3 rows) -QUERY: select *,octet_length(ÍѸì) from ·×»»µ¡ÍѸì; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è|octet_length ---------------------------+----------+----------+------------ -¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ |µ¡A01¾å | | 24 -¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹|ʬB10Ãæ | | 26 -¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ |¿ÍZ01²¼ | | 24 +select *,octet_length(ÍѸì) from ·×»»µ¡ÍѸì; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è | octet_length +----------------------------+------------+------------+-------------- + ¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ | µ¡A01¾å | | 24 + ¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹ | ʬB10Ãæ | | 26 + ¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ | ¿ÍZ01²¼ | | 24 (3 rows) -QUERY: select *,position('¥Ç' in ÍѸì) from ·×»»µ¡ÍѸì; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è|strpos ---------------------------+----------+----------+------ -¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ |µ¡A01¾å | | 7 -¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹|ʬB10Ãæ | | 0 -¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ |¿ÍZ01²¼ | | 0 +select *,position('¥Ç' in ÍѸì) from ·×»»µ¡ÍѸì; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è | strpos +----------------------------+------------+------------+-------- + ¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ | µ¡A01¾å | | 7 + ¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹ | ʬB10Ãæ | | 0 + ¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ | ¿ÍZ01²¼ | | 0 (3 rows) -QUERY: select *,substring(ÍѸì from 10 for 4) from ·×»»µ¡ÍѸì; -ÍѸì |ʬÎॳ¡¼¥É|È÷¹Í1a¤À¤è|substr ---------------------------+----------+----------+-------- -¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ |µ¡A01¾å | |¥×¥ì¥¤ -¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹|ʬB10Ãæ | |¥£¥Ã¥¯¥¹ -¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ |¿ÍZ01²¼ | |¥é¥Þ¡¼ +select *,substring(ÍѸì from 10 for 4) from ·×»»µ¡ÍѸì; + ÍѸì | ʬÎॳ¡¼¥É | È÷¹Í1a¤À¤è | substr +----------------------------+------------+------------+---------- + ¥³¥ó¥Ô¥å¡¼¥¿¥Ç¥£¥¹¥×¥ì¥¤ | µ¡A01¾å | | ¥×¥ì¥¤ + ¥³¥ó¥Ô¥å¡¼¥¿¥°¥é¥Õ¥£¥Ã¥¯¥¹ | ʬB10Ãæ | | ¥£¥Ã¥¯¥¹ + ¥³¥ó¥Ô¥å¡¼¥¿¥×¥í¥°¥é¥Þ¡¼ | ¿ÍZ01²¼ | | ¥é¥Þ¡¼ (3 rows) diff --git a/src/test/mb/expected/sjis.out b/src/test/mb/expected/sjis.out index 512678764d..9dadee10e7 100644 --- a/src/test/mb/expected/sjis.out +++ b/src/test/mb/expected/sjis.out @@ -1,90 +1,90 @@ -QUERY: drop table ŒvŽZ‹@—pŒê; -QUERY: create table ŒvŽZ‹@—pŒê (—pŒê text, •ª—ÞƒR[ƒh varchar, ”õl1A‚¾‚æ char(16)); -QUERY: create index ŒvŽZ‹@—pŒêindex1 on ŒvŽZ‹@—pŒê using btree (—pŒê); -QUERY: create index ŒvŽZ‹@—pŒêindex2 on ŒvŽZ‹@—pŒê using hash (•ª—ÞƒR[ƒh); -QUERY: insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC','‹@A01ã'); -QUERY: insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX','•ªB10’†'); -QUERY: insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[','lZ01‰º'); -QUERY: vacuum ŒvŽZ‹@—pŒê; -QUERY: select * from ŒvŽZ‹@—pŒê; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ ---------------------------+----------+---------- -ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC |‹@A01ã | -ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX|•ªB10’† | -ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ |lZ01‰º | +drop table ŒvŽZ‹@—pŒê; +create table ŒvŽZ‹@—pŒê (—pŒê text, •ª—ÞƒR[ƒh varchar, ”õl1A‚¾‚æ char(16)); +create index ŒvŽZ‹@—pŒêindex1 on ŒvŽZ‹@—pŒê using btree (—pŒê); +create index ŒvŽZ‹@—pŒêindex2 on ŒvŽZ‹@—pŒê using hash (•ª—ÞƒR[ƒh); +insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC','‹@A01ã'); +insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX','•ªB10’†'); +insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[','lZ01‰º'); +vacuum ŒvŽZ‹@—pŒê; +select * from ŒvŽZ‹@—pŒê; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ +----------------------------+------------+------------ + ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | + ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX | •ªB10’† | + ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | (3 rows) -QUERY: select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh = 'lZ01‰º'; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ -------------------------+----------+---------- -ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[|lZ01‰º | +select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh = 'lZ01‰º'; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ +--------------------------+------------+------------ + ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | (1 row) -QUERY: select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh ~* 'lz01‰º'; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ -------------------------+----------+---------- -ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[|lZ01‰º | +select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh ~* 'lz01‰º'; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ +--------------------------+------------+------------ + ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | (1 row) -QUERY: select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh like '_Z01_'; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ -------------------------+----------+---------- -ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[|lZ01‰º | +select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh like '_Z01_'; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ +--------------------------+------------+------------ + ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | (1 row) -QUERY: select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh like '_Z%'; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ -------------------------+----------+---------- -ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[|lZ01‰º | +select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh like '_Z%'; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ +--------------------------+------------+------------ + ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | (1 row) -QUERY: select * from ŒvŽZ‹@—pŒê where —pŒê ~ 'ƒRƒ“ƒsƒ…[ƒ^[ƒfƒO]'; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ ---------------------------+----------+---------- -ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC |‹@A01ã | -ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX|•ªB10’† | +select * from ŒvŽZ‹@—pŒê where —pŒê ~ 'ƒRƒ“ƒsƒ…[ƒ^[ƒfƒO]'; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ +----------------------------+------------+------------ + ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | + ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX | •ªB10’† | (2 rows) -QUERY: select * from ŒvŽZ‹@—pŒê where —pŒê ~* 'ƒRƒ“ƒsƒ…[ƒ^[ƒfƒO]'; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ ---------------------------+----------+---------- -ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC |‹@A01ã | -ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX|•ªB10’† | +select * from ŒvŽZ‹@—pŒê where —pŒê ~* 'ƒRƒ“ƒsƒ…[ƒ^[ƒfƒO]'; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ +----------------------------+------------+------------ + ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | + ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX | •ªB10’† | (2 rows) -QUERY: select *,character_length(—pŒê) from ŒvŽZ‹@—pŒê; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ|length ---------------------------+----------+----------+------ -ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC |‹@A01ã | | 12 -ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX|•ªB10’† | | 13 -ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ |lZ01‰º | | 12 +select *,character_length(—pŒê) from ŒvŽZ‹@—pŒê; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ | length +----------------------------+------------+------------+-------- + ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | | 12 + ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX | •ªB10’† | | 13 + ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | | 12 (3 rows) -QUERY: select *,octet_length(—pŒê) from ŒvŽZ‹@—pŒê; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ|octet_length ---------------------------+----------+----------+------------ -ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC |‹@A01ã | | 24 -ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX|•ªB10’† | | 26 -ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ |lZ01‰º | | 24 +select *,octet_length(—pŒê) from ŒvŽZ‹@—pŒê; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ | octet_length +----------------------------+------------+------------+-------------- + ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | | 24 + ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX | •ªB10’† | | 26 + ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | | 24 (3 rows) -QUERY: select *,position('ƒf' in —pŒê) from ŒvŽZ‹@—pŒê; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ|strpos ---------------------------+----------+----------+------ -ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC |‹@A01ã | | 7 -ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX|•ªB10’† | | 0 -ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ |lZ01‰º | | 0 +select *,position('ƒf' in —pŒê) from ŒvŽZ‹@—pŒê; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ | strpos +----------------------------+------------+------------+-------- + ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | | 7 + ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX | •ªB10’† | | 0 + ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | | 0 (3 rows) -QUERY: select *,substring(—pŒê from 10 for 4) from ŒvŽZ‹@—pŒê; -—pŒê |•ª—ÞƒR[ƒh|”õl1a‚¾‚æ|substr ---------------------------+----------+----------+-------- -ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC |‹@A01ã | |ƒvƒŒƒC -ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX|•ªB10’† | |ƒBƒbƒNƒX -ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ |lZ01‰º | |ƒ‰ƒ}[ +select *,substring(—pŒê from 10 for 4) from ŒvŽZ‹@—pŒê; + —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ | substr +----------------------------+------------+------------+---------- + ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | | ƒvƒŒƒC + ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX | •ªB10’† | | ƒBƒbƒNƒX + ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | | ƒ‰ƒ}[ (3 rows) -QUERY: copy ŒvŽZ‹@—pŒê to stdout; +copy ŒvŽZ‹@—pŒê to stdout; ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC ‹@A01ã \N ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX •ªB10’† \N ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ lZ01‰º \N