PHP/Perl/FLASH/SQL/JavaScriptãªã©ããã°ã©ã ã®æ§ç¯æ¹æ³ãµã³ãã«
PHP/Perl/FLASH/SQL/JavaScriptãªã©ããã°ã©ã ã®æ§ç¯æ¹æ³ãµã³ãã«
STEP.2 é¢æ°ãä½æãã¦SQLæãç°¡ç¥ã«ãã ãã®ã¾ã¾ã§ã¯SQLæãæ¸ãã®ãé¢åãªã®ã§ãé¢æ°ãä½æãã¦SQLæãç°¡ç¥ã«ãã¾ãã CREATE OR REPLACE FUNCTION get_nocase_text (text) RETURNS text AS $$ SELECT translate(upper($1) ,'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ ' ,'ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼¡ï¼¢ï¼£ï¼¤ï¼¥ï¼¦ï¼§ï¼¨ï¼©ï¼ªï¼«ï¼¬ï¼ï¼®ï¼¯ï¼°ï¼±ï¼²ï¼³ï¼´ï¼µï¼¶ï¼·ï¼¸ï¼¹ï¼ºã'); $$ LANGUAGE SQL IMMUTABLE; ã¨é¢æ°ãä½æãã¦ããã¨ãSQLæã¯æ¬¡ã®ããã«ãªãã¾ãã SELECT ååcd, ååå FROM t_ååå°å¸³ WHERE get_nocase_text(ååå) LIKE 'Aï¼%'; STEP.3 å¼ã¤ã³ããã¯ã¹ã§é«éã«ãã ç¹å®ã®åã«ã¤ãã¦
ã注æã pg_monzã¯Zabbix 5.0ã«ã¯å¯¾å¿ãããZabbix 4.0ã®ãã«ãµãã¼ãçµäº2021å¹´10æ31æ¥ããã£ã¦ã¡ã³ããã³ã¹ãçµäºãã¾ããã PostgreSQLç£è¦ã¯Zabbix 5.0以éã§ã¯æ¨æºãã³ãã¬ã¼ãã®å©ç¨ãæ¨å¥¨ãã¾ãã pg_monz ã¨ã¯ PostgreSQL monitoring template for Zabbix (pg_monz) ã¯ãZabbixã§PostgreSQLã®å種ç£è¦ãè¡ãããã®ãã³ãã¬ã¼ãã§ãã pg_monzã®ç®ç pg_monzãå°å ¥ãããã¨ã§ãPostgreSQLã®æ»æ´»ç£è¦ããªã½ã¼ã¹ç£è¦ãæ§è½ç£è¦ãªã©ãè¡ãã¾ãã PostgreSQLåä½ã§ç¨¼åããã·ã³ã°ã«æ§æã®ç¶æ ãPostgreSQLã®Streaming Replicationã使ã£ãåé·æ§æã®ç¶æ ãpgpool-IIã使ã£ãè² è·åæ£æ§æã®ç¶æ ã®ç£è¦ãè¡ããã¨ãã§ããPost
DBã®ãã¼ã¿ãèªåã§ä½æããããã°ã©ã ã§æ´æ°ããæã«ãã©ããã£ã¦æ¤è¨¼ããããã¨ããå 容ã§ãã PostgreSQLã«ã¯COPYæã§CSVã«åºåãããã¨ãå¯è½ãªã®ã§ãåºåããCSVãæ´æ°åå¾ã§diffãã¾ããã ã¾ãã¯DBã®ä¸èº«ã¯ãããªæããtestã¨ããååã®DBã«âã®æ§ãªãã¼ã¿ãå ¥ãã¦ããã¾ãã test=# SELECT * FROM test_table; id | name | tel ----+-----------+------------ 1 | yamada | 012345678 2 | takahashi | 123456789 3 | suzuki | 234567890 1 | takeda | 3456789012 (4 rows)ã³ãã³ãã¯ã以ä¸ã1è¡ã ãã psql <DBå> -c "COPY <ãã¼ãã«å> TO '<ãã¡ã¤ã«å>' CSV -------
http://www.postgresql.jp/document/current/html/libpq-pgpass.html [1] å®è¡ããã¦ã¼ã¶ã®ãã¼ã ãã£ã¬ã¯ããªã«ã.pgpassããä½æãï¼æ¨©é600ï¼ hostname:port:database:username:password ã®é ã§è¨è¿° ä¾ï¼ localhost:5432:db:postges:password ãã®å¾ pg_dump -h localhost -U postgres db > dmp ã¨ãã£ãå½¢ã§å®è¡ããã¨èªåçã«ãã¹ã¯ã¼ããéãããã [1] http://www.postgresql.jp/document/current/html/libpq-pgpass.html
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}