{"published":"2018-01-16 19:24:27","categories":["PostgreSQL\u3067\u5b66\u3076\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"author_name":"healthyprog","title":"getenv\u306e\u4f7f\u3044\u65b9","height":"190","blog_title":"healthyprog\u306e\u30d6\u30ed\u30b0","width":"100%","version":"1.0","type":"rich","author_url":"https://blog.hatena.ne.jp/healthyprog/","url":"https://healthyprog.hatenablog.com/entry/2018/01/16/192427","provider_url":"https://hatena.blog","description":" PostgreSQL\u3092\u984c\u6750\u306b\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u307c\u3046\u3068\u601d\u3046\u3002 \u521d\u3081\u306f\u7c21\u5358\u306a\u3068\u3053\u308d\u304b\u3089\u3068\u3044\u3046\u3053\u3068\u3067\u3001getenv\u95a2\u6570\u306b\u3064\u3044\u3066\u3002 \u984c\u6750\u306fPostgreSQL 10.0\u306e\u30b3\u30fc\u30c9\u3002 getenv\u306fstdlib.h\u306b\u542b\u307e\u308c\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u95a2\u6570\u3067\u3059\u3002\u305d\u306e\u540d\u306e\u901a\u308a\u306b\u5f15\u6570\u306b\u3068\u3063\u305f\u74b0\u5883\u5909\u6570\u306e\u5024\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u53d6\u5f97\u3002 \u53d6\u5f97\u3067\u304d\u306a\u304b\u3063\u305f\u5834\u5408\u306fNULL\u3092\u8fd4\u3059\u3002 \u4e0b\u8a18\u306f\u3001src/bin/scripts/createdb.c\u304b\u3089\u629c\u7c8b\u3002 NULL\u306e\u5834\u5408\u3092\u8003\u616e\u3057\u3066\u3001if(gettnv(\"FOO\"))\u3068\u3044\u3046\u66f8\u304d\u65b9\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u3002 if (dbname == NULL) { if (getenv(\"PGDATABAS\u2026","blog_url":"https://healthyprog.hatenablog.com/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhealthyprog.hatenablog.com%2Fentry%2F2018%2F01%2F16%2F192427\" title=\"getenv\u306e\u4f7f\u3044\u65b9 - healthyprog\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog"}