{"author_url":"https://blog.hatena.ne.jp/ytnk531/","blog_url":"https://ytnk531.hatenablog.com/","provider_url":"https://hatena.blog","image_url":null,"type":"rich","width":"100%","categories":[],"published":"2023-01-05 21:50:46","url":"https://ytnk531.hatenablog.com/entry/2023/01/05/215046","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytnk531.hatenablog.com%2Fentry%2F2023%2F01%2F05%2F215046\" title=\"PostgreSQL\u306e\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3059\u308b - \u30de\u30a4\u30da\u30fc\u30b9\u306aRails\u304a\u3058\u3055\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","title":"PostgreSQL\u306e\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3059\u308b","provider_name":"Hatena Blog","blog_title":"\u30de\u30a4\u30da\u30fc\u30b9\u306aRails\u304a\u3058\u3055\u3093","version":"1.0","author_name":"ytnk531","description":"Postgres\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u3001\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u8f09\u3063\u3066\u3044\u305f\u3002 www.postgresql.jp \u30c6\u30fc\u30d6\u30eb\u306b\u884c\u3092\u633f\u5165\u3057\u3066\u3001\u5b9f\u969b\u306b\u66f8\u304d\u8fbc\u307e\u308c\u308b\u30c7\u30fc\u30bf\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3002 \u624b\u9806 \u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u8abf\u3079\u308b \u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u8abf\u3079\u308b\u3002 CREATE TABLE datafiletest (name varchar(100), age integer); SELECT pg_relation_filepath('datafiletest'); -- base/16388/24577 SHOW data_directory; -- /var/lib/postgresq\u2026"}