{"id":4774,"date":"2018-06-21T15:07:25","date_gmt":"2018-06-21T06:07:25","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=4774"},"modified":"2023-05-28T08:31:56","modified_gmt":"2023-05-27T23:31:56","slug":"%e3%80%90postgresql%e3%80%91%e6%a6%82%e8%a6%81","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=4774","title":{"rendered":"\u3010PostgreSQL\u3011\u7279\u5fb4\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u30b9\u30ad\u30fc\u30de\u306e\u57fa\u672c"},"content":{"rendered":"<h2>PostgreSQL(\u30dd\u30b9\u30c8\u30b0\u30ec\u30b9\u30ad\u30e5\u30fc\u30a8\u30eb)\u3068\u306f\uff1f<\/h2>\n<p>1980\u5e74\u306b\u30ab\u30ea\u30d5\u30a9\u30eb\u30cb\u30a2\u5927\u5b66\u3092\u4e2d\u5fc3\u306b\u958b\u767a\u3055\u308c\u305fMySQL\u3068\u4e26\u3093\u3067\u4e16\u754c\u4e2d\u3067\u4eba\u6c17\u304c\u3042\u308b<span style=\"color: #ff0000;\"><strong>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<h2>\u7279\u5fb4<\/h2>\n<p>SQL\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u6a19\u6e96SQL\u3078\u306e\u6e96\u62e0\u3092\u5f37\u304f\u610f\u8b58\u3057\u305f\u8a2d\u8a08\u306b\u306a\u3063\u3066\u3044\u308b<\/strong><\/span>\u306e\u3067\u3001\u6700\u521d\u306b\u5b66\u3076\uff24\uff22\u3068\u3057\u3066\u306f\u6700\u9ad8\u3068\u3044\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30d0\u30fc\u30b8\u30e7\u30f3<\/h2>\n<table style=\"width: 909px;\">\n<tbody>\n<tr>\n<th style=\"width: 51px;\">\u30d0\u30fc\u30b8\u30e7\u30f3<\/th>\n<th style=\"width: 90.8359px;\">\u30ea\u30ea\u30fc\u30b9\u65e5<\/th>\n<th style=\"width: 671.164px;\">\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">6.0<\/td>\n<td style=\"width: 90.8359px;\">1997\u5e741\u6708<\/td>\n<td style=\"width: 671.164px;\">UNIQUE\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001IN\u53e5\u3001BETWEEN\u53e5<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">6.1<\/td>\n<td style=\"width: 90.8359px;\">1997\u5e746\u6708<\/td>\n<td style=\"width: 671.164px;\">GEQO\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u3001GROUP BY\u3001TIMESTAMP\u578b\u3001TIME\u578b\u3001DATE\u578b\u3001SET\u30b3\u30de\u30f3\u30c9\u3001SHOW\u30b3\u30de\u30f3\u30c9\u3001RESET\u30b3\u30de\u30f3\u30c9<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">6.2<\/td>\n<td style=\"width: 90.8359px;\">1997\u5e7410\u6708<\/td>\n<td style=\"width: 671.164px;\">JDBC\u3001TRIGGER\u3001TIMEZONE\u578b\u3001INTERVAL\u578b\u3001FLOAT\u578b\u3001DECIMAL\u578b\u3001NOT NULL<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">6.3<\/td>\n<td style=\"width: 90.8359px;\">1998\u5e743\u6708<\/td>\n<td style=\"width: 671.164px;\">\u30b5\u30d6\u30af\u30a8\u30ea\u3001\u30de\u30eb\u30c1\u30d0\u30a4\u30c8<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">6.4<\/td>\n<td style=\"width: 90.8359px;\">1998\u5e7410\u6708<\/td>\n<td style=\"width: 671.164px;\">PL\/pgSQL<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">6.5<\/td>\n<td style=\"width: 90.8359px;\">1999\u5e746\u6708<\/td>\n<td style=\"width: 671.164px;\">MVCC\u3001\u30db\u30c3\u30c8\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u4e00\u6642\u30c6\u30fc\u30d6\u30eb\u3001\u884c\u30ed\u30c3\u30af<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">7.0<\/td>\n<td style=\"width: 90.8359px;\">2000\u5e745\u6708<\/td>\n<td style=\"width: 671.164px;\">\u5916\u90e8\u30ad\u30fc<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">7.1<\/td>\n<td style=\"width: 90.8359px;\">2001\u5e744\u6708<\/td>\n<td style=\"width: 671.164px;\">WAL\u3001TOAST\u3001\u5916\u90e8\u7d50\u5408<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">7.2<\/td>\n<td style=\"width: 90.8359px;\">2002\u5e742\u6708<\/td>\n<td style=\"width: 671.164px;\">\u7d71\u8a08\u60c5\u5831\u3001\u4e26\u884cVACUUM<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">7.3<\/td>\n<td style=\"width: 90.8359px;\">2002\u5e7411\u6708<\/td>\n<td style=\"width: 671.164px;\">\u30b9\u30ad\u30fc\u30de\u3001\u56fd\u969b\u5316\u5bfe\u5fdc\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30d7\u30ed\u30c8\u30b3\u30ebV3\u5bfe\u5fdc<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">7.4<\/td>\n<td style=\"width: 90.8359px;\">2003\u5e7411\u6708<\/td>\n<td style=\"width: 671.164px;\">\u554f\u3044\u5408\u308f\u305b\u6027\u80fd\u306e\u5411\u4e0a\u3001\u30a4\u30f3\u30d5\u30a9\u30e1\u30fc\u30b7\u30e7\u30f3\u30b9\u30ad\u30fc\u30de<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">8.0<\/td>\n<td style=\"width: 90.8359px;\">2005\u5e741\u6708<\/td>\n<td style=\"width: 671.164px;\">Windows\u5bfe\u5fdc\u3001PITR\u3001\u30c6\u30fc\u30d6\u30eb\u30b9\u30da\u30fc\u30b9\u3001\u30bb\u30fc\u30d6\u30dd\u30a4\u30f3\u30c8<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">8.1<\/td>\n<td style=\"width: 90.8359px;\">2005\u5e7411\u6708<\/td>\n<td style=\"width: 671.164px;\">2\u76f8\u30b3\u30df\u30c3\u30c8\u3001\u30ed\u30fc\u30eb\u3001\u81ea\u52d5VACUUM\u3001\u30d3\u30c3\u30c8\u30de\u30c3\u30d7\u30b9\u30ad\u30e3\u30f3<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">8.2<\/td>\n<td style=\"width: 90.8359px;\">2006\u5e7412\u6708<\/td>\n<td style=\"width: 671.164px;\">\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u540c\u6642\u4f5c\u6210\u3001FILLFACTOR\u3001INSERT\u3001UPDATE\u3001DELETE RETURNNING<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">8.3<\/td>\n<td style=\"width: 90.8359px;\">2008\u5e742\u6708<\/td>\n<td style=\"width: 671.164px;\">\u5168\u6587\u691c\u7d22(tsearch2)\u3001HOT\u3001\u8ca0\u8377\u5206\u6563\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8\u3001\u975e\u540c\u671f\u30b3\u30df\u30c3\u30c8\u3001SQL\/XML<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">8.4<\/td>\n<td style=\"width: 90.8359px;\">2009\u5e747\u6708<\/td>\n<td style=\"width: 671.164px;\">\u30a6\u30a4\u30f3\u30c9\u30a6\u95a2\u6570\u3001\u5171\u901a\u30c6\u30fc\u30d6\u30eb\u5f0f\/\u518d\u5e30\u554f\u3044\u5408\u308f\u305b\u3001\u4e26\u5217\u30ea\u30b9\u30c8\u30a2\u3001VACUUM\u306e\u6539\u5584<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">9.0<\/td>\n<td style=\"width: 90.8359px;\">2010\u5e749\u6708<\/td>\n<td style=\"width: 671.164px;\">\u672c\u4f53\u7d44\u307f\u8fbc\u307f\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u8a2d\u5b9a\u306e\u62e1\u5f35\u3001DO\u6587\u306b\u3088\u308b\u95a2\u6570\u306e\u30a4\u30f3\u30e9\u30a4\u30f3\u5b9f\u884c\u300164bitWindows\u3078\u306e\u5bfe\u5fdc<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">9.1<\/td>\n<td style=\"width: 90.8359px;\">2011\u5e749\u6708<\/td>\n<td style=\"width: 671.164px;\">\u540c\u671f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u5916\u90e8\u30c6\u30fc\u30d6\u30eb\u3001\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3001\u771f\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u30d6\u30eb\u306e\u9694\u96e2\u30ec\u30d9\u30eb\u3001UNLOGGED\u30c6\u30fc\u30d6\u30eb\u3001WITH\u53e5\u306b\u3088\u308b\u30c7\u30fc\u30bf\u5909\u66f4\u3001GIST\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u8fd1\u4f3c\u691c\u7d22\u3001sepgsql<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">9.2<\/td>\n<td style=\"width: 90.8359px;\">2012\u5e749\u6708<\/td>\n<td style=\"width: 671.164px;\">Index-only scan\u3001\u4e26\u5217\u5b9f\u884c\u51e6\u7406\u6027\u80fd\u5411\u4e0a\u3001\u30ab\u30b9\u30b1\u30fc\u30c9\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001JSON\u30c7\u30fc\u30bf\u578b\u3001\u7bc4\u56f2\u30c7\u30fc\u30bf\u578b\u3001DDL\u547d\u4ee4\u6539\u5584<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">9.3<\/td>\n<td style=\"width: 90.8359px;\">2013\u5e749\u6708<\/td>\n<td style=\"width: 671.164px;\">postgres_fdw\u3001\u30de\u30c6\u30ea\u30a2\u30e9\u30a4\u30ba\u30c9\u30d3\u30e5\u30fc\u3001LATERAL\u7d50\u5408\u3001JSON\u30c7\u30fc\u30bf\u578b\u306e\u6a5f\u80fd\u62e1\u5145<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">9.4<\/td>\n<td style=\"width: 90.8359px;\">2014\u5e7412\u6708<\/td>\n<td style=\"width: 671.164px;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">9.5<\/td>\n<td style=\"width: 90.8359px;\">2016\u5e741\u6708<\/td>\n<td style=\"width: 671.164px;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">9.6<\/td>\n<td style=\"width: 90.8359px;\">2016\u5e749\u6708<\/td>\n<td style=\"width: 671.164px;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">10.0<\/td>\n<td style=\"width: 90.8359px;\">2017\u5e7410\u6708<\/td>\n<td style=\"width: 671.164px;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 51px;\">11.0<\/td>\n<td style=\"width: 90.8359px;\">2018\u5e7410\u6708<\/td>\n<td style=\"width: 671.164px;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306f\uff1f<\/h2>\n<p>PostgreSQL\u304c\u7ba1\u7406\u3059\u308b\u30c7\u30fc\u30bf\u3092\u5b9f\u969b\u306b\u8a18\u9332\u3059\u308b\u305f\u3081\u306e\u9818\u57df\u3067\u3059\u3002\u3053\u308c\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30e9\u30b9\u30bf\u3068\u547c\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<th>\u5099\u8003<\/th>\n<\/tr>\n<tr>\n<td>template0<\/td>\n<td>\u30b0\u30ed\u30fc\u30d0\u30eb\u30c7\u30fc\u30bf\uff08\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u306a\u3069\uff09<\/td>\n<td>\u66f8\u304d\u8fbc\u307f\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u5e38\u306b\u6700\u521d\u306e\u72b6\u614b\u304c\u4fdd\u305f\u308c\u307e\u3059\u3002template1\u306e\u6700\u521d\u306e\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u4eca\u5f8c\u65b0\u3057\u304f\u4f5c\u6210\u3059\u308bDB\u3092\u307e\u3063\u3055\u3089\u306a\u72b6\u614b\u3067\u4f5c\u308a\u305f\u3044\u5834\u5408\u306f\u3053\u3061\u3089\u3092\u4f7f\u3044\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>template1<\/td>\n<td>\u30b7\u30b9\u30c6\u30e0\u304c\u4f7f\u3046\u9818\u57df<\/td>\n<td>\u6587\u5b57\u901a\u308a\u30e6\u30fc\u30b6\u30fc\u304cDB\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u4f7f\u308f\u308c\u307e\u3059\u3002\u4eca\u5f8c\u4f5c\u6210\u3059\u308bDB\u306b\u5171\u901a\u306e\u30c6\u30fc\u30d6\u30eb\u306a\u3069\u4f5c\u3063\u3066\u304a\u304d\u305f\u3044\u5834\u5408\u306f\u4e8b\u524d\u306b\u4f5c\u6210\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>postgres<\/td>\n<td><\/td>\n<td>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u63a5\u7d9a\u5148\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fc\u304c\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u30ed\u30b0\u30a4\u30f3<\/h3>\n<h4>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6307\u5b9a\u3057\u3066\u30ed\u30b0\u30a4\u30f3<\/h4>\n<pre class=\"lang:default decode:true\">psql postgres(DB\u540d) postgres(\u30e6\u30fc\u30b6\u30fc\u540d)<\/pre>\n<h4>\u30db\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u3066\u30ed\u30b0\u30a4\u30f3<\/h4>\n<pre class=\"lang:default decode:true\">psql -h localhost(\u30db\u30b9\u30c8\u540d) -U postgres(\u30e6\u30fc\u30b6\u30fc\u540d)<\/pre>\n<h3>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e00\u89a7\u306e\u8868\u793a<\/h3>\n<pre class=\"lang:default decode:true\">\\l<\/pre>\n<p>\u4e8b\u524d\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u7d42\u4e86<\/h3>\n<pre class=\"lang:default decode:true \">\\q<\/pre>\n<h2>\u30b9\u30ad\u30fc\u30de\u3068\u306f\uff1f<\/h2>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e2d\u306b\u5b58\u5728\u3059\u308b\u540d\u524d\u7a7a\u9593\u3067\u3059\u3002\u30c6\u30fc\u30d6\u30eb\u306a\u3069\u306f\u30b9\u30ad\u30fc\u30de\u306e\u4e0b\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002\u901a\u5e38\u306f\u30b9\u30ad\u30fc\u30de\u3092\u610f\u8b58\u305b\u305a\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u306b\u306f\u512a\u5148\u5ea6\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30b9\u30ad\u30fc\u30de\u306e\u7528\u9014<\/h3>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u4e00\u3064\u3057\u304b\u306a\u3044\u304c\u3001\u5229\u7528\u3067\u304d\u308b\u30c6\u30fc\u30d6\u30eb\u3092\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306b\u5225\u3005\u306b\u3057\u305f\u3044\u3068\u3044\u3063\u305f\u5834\u5408\u306b\u4f7f\u3048\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u306e\u30b5\u30fc\u30c1\u30d1\u30b9\u3092\u4fee\u6b63\u3059\u308c\u3070\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306eSQL\u6587\u3092\u5909\u66f4\u305b\u305a\u306b\u30a2\u30af\u30bb\u30b9\u5148\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u5b9f\u52d9\u3067\u306f\u3042\u307e\u308a\u4f7f\u3046\u6a5f\u4f1a\u306f\u306a\u3044\u3068\u3044\u3063\u3066\u3082\u826f\u3044\u3067\u3057\u3087\u3046\u3002DB\u81ea\u4f53\u3092\u5206\u3051\u3066\u3057\u307e\u3046\u5f62\u306b\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u3002\u305f\u3060\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306f\u3053\u3046\u3044\u3046\u6982\u5ff5\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3060\u3051\u62bc\u3055\u3048\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5b58\u5728\u3059\u308b\u30b9\u30ad\u30fc\u30de<\/h3>\n<table>\n<tbody>\n<tr>\n<th>\u30b9\u30ad\u30fc\u30de\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>information_schema<\/td>\n<td>\u30a4\u30f3\u30d5\u30a9\u30e1\u30fc\u30b7\u30e7\u30f3\u30b9\u30ad\u30fc\u30de<\/td>\n<\/tr>\n<tr>\n<td>pg_catalog<\/td>\n<td>\u30b7\u30b9\u30c6\u30e0\u30ab\u30bf\u30ed\u30b0<\/td>\n<\/tr>\n<tr>\n<td>pg_toast<\/td>\n<td>TOAST<\/td>\n<\/tr>\n<tr>\n<td>pg_toast_temp_1<\/td>\n<td>TOAST\u7528\u306e\u4e00\u6642\u30b9\u30ad\u30fc\u30de<\/td>\n<\/tr>\n<tr>\n<td>pg_temp_1<\/td>\n<td>\u4e00\u6642\u30c6\u30fc\u30d6\u30eb\u7528\u30b9\u30ad\u30fc\u30de<\/td>\n<\/tr>\n<tr>\n<td>public<\/td>\n<td>\u901a\u5e38\u5229\u7528\u53ef\u80fd\u306a\u30b9\u30ad\u30fc\u30de<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u30b3\u30de\u30f3\u30c9<\/h3>\n<h4>\u30b9\u30ad\u30fc\u30de\u3092\u751f\u6210\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/h4>\n<pre class=\"lang:default decode:true\">CREATE SCHAME \u30b9\u30ad\u30fc\u30de\u540d;<\/pre>\n<h4>\u30b9\u30ad\u30fc\u30de\u3092\u524a\u9664\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/h4>\n<pre class=\"lang:default decode:true\">DROP SCHAME \u30b9\u30ad\u30fc\u30de\u540d;<\/pre>\n<h4>\u73fe\u5728\u512a\u5148\u3055\u305b\u308b\u30b9\u30ad\u30fc\u30de\u3092\u8868\u793a\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/h4>\n<pre class=\"lang:default decode:true\">select current_schema();<\/pre>\n<h4>\u512a\u5148\u3055\u305b\u308b\u30b9\u30ad\u30fc\u30de\u9806\uff08\u30b5\u30fc\u30c1\u30d1\u30b9\uff09\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/h4>\n<pre class=\"lang:default decode:true \">SHOW search_path;<\/pre>\n<p>\u300c\"$user\", public\u300d\u3068\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u540c\u3058\u30b9\u30ad\u30fc\u30de\u304c\u512a\u5148\u3055\u308c\u3066\u305d\u306e\u6b21\u306bpublic\u30b9\u30ad\u30fc\u30de\u304c\u512a\u5148\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"PostgreSQL(\u30dd\u30b9\u30c8\u30b0\u30ec\u30b9\u30ad\u30e5\u30fc\u30a8\u30eb)\u3068\u306f\uff1f 1980\u5e74\u306b\u30ab\u30ea\u30d5\u30a9\u30eb\u30cb\u30a2\u5927\u5b66\u3092\u4e2d\u5fc3\u306b\u958b\u767a\u3055\u308c\u305fMySQL\u3068\u4e26\u3093\u3067\u4e16\u754c\u4e2d\u3067\u4eba\u6c17\u304c\u3042\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002 \u7279\u5fb4 SQL\u304c\u3001\u6a19\u6e96SQL\u3078\u306e\u6e96\u62e0\u3092\u5f37 [&hellip;]","protected":false},"author":1,"featured_media":4821,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4774"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4774"}],"version-history":[{"count":7,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4774\/revisions"}],"predecessor-version":[{"id":20760,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4774\/revisions\/20760"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/4821"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4774"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}