{"blog_url":"https://unageanu.hatenablog.com/","type":"rich","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/unageanu/","description":"\u30ab\u30ec\u30f3\u30c8\u30c7\u30a4\u30ec\u30af\u30c8\u30ea\u306b\u3001DB\u300cfoo\u300d\u306b\u3042\u308b\u30c6\u30fc\u30d6\u30eb\u3054\u3068\u306e\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u62ec\u4f5c\u6210\u3059\u308b1\u884c\u3067\u3059\u3002 $ psql -c '\\dt' foo | awk '/public/ { system(\"/usr/bin/pg_dump -f ./\"$3\".sql -t \"$3\" foo\") }'\u6226\u7565\u306f\u4ee5\u4e0b\u3002 \u300c\\dt\u300d\u3067\u306e\u51fa\u529b\u3092awk\u3067\u89e3\u6790\u3057\u3066\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u629c\u304d\u51fa\u3057\u3001 \u500b\u5225\u306bpg_dump\u3092\u5b9f\u884c DB\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u305f\u3044\u3051\u3069\u3001\u4e00\u90e8\u306e\u30c6\u30fc\u30d6\u30eb\u3060\u3051\u5bfe\u8c61\u304b\u3089\u9664\u5916\u3057\u305f\u3044\u3068\u3044\u3046\u3088\u3046\u306a\u5834\u5408\u306b\u3069\u3046\u305e\u3002","image_url":null,"categories":["PostgreSQL"],"url":"https://unageanu.hatenablog.com/entry/20100223/1266930570","title":" \u30c6\u30fc\u30d6\u30eb\u3054\u3068\u306e\u30c0\u30f3\u30d7\u3092\u4e00\u62ec\u4f5c\u6210\u3059\u308b1\u884c","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20100223%2F1266930570\" title=\" \u30c6\u30fc\u30d6\u30eb\u3054\u3068\u306e\u30c0\u30f3\u30d7\u3092\u4e00\u62ec\u4f5c\u6210\u3059\u308b1\u884c - \u3046\u306a\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","published":"2010-02-23 22:09:30","version":"1.0","author_name":"unageanu","width":"100%","height":"190","blog_title":"\u3046\u306a\u306e\u65e5\u8a18"}