{"title":"PostgreSQL\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406","author_name":"taramonera","height":"190","description":"\u30c6\u30fc\u30d6\u30eb\u3092\u30ed\u30c3\u30af\u3059\u308b =>BEGIN; =>LOCK TABLE \u30c6\u30fc\u30d6\u30eb\u540d IN SHARE MODE; \u2193\u8af8\u3005\u51e6\u7406 \u2193 =>COMMIT; SHARE MODE\u3067\u306f\u5225\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304b\u3089\u30c6\u30fc\u30d6\u30eb\u306e\u95b2\u89a7\u306f\u3067\u304d\u308b\u304c\u3001\u66f4\u65b0\u306f\u3067\u304d\u306a\u3044\u3002 \u30c6\u30fc\u30d6\u30eb\u306e\u884c\u3092\u30ed\u30c3\u30af\u3059\u308b =>BEGIN; =>SELECT * FROM \u30c6\u30fc\u30d6\u30eb\u540d WHERE id = 1 FOR UPDATE; \u2193\u8af8\u3005\u51e6\u7406 \u2193 =>COMMIT; \u5225\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304b\u3089id=1\u306e\u884c\u306f\u66f4\u65b0\u3067\u304d\u306a\u3044\u3002 \u30ed\u30c3\u30af\u306e\u72b6\u614b\u78ba\u8a8d =>select b.relname, a.* from pg_locks a LEFT OUTER JOIN pg_\u2026","provider_name":"Hatena Blog","width":"100%","version":"1.0","url":"https://taramonera.hatenadiary.jp/entry/20100329/1270791118","blog_title":"\u7b2c2.5\u5730\u533a","author_url":"https://blog.hatena.ne.jp/taramonera/","image_url":null,"type":"rich","published":"2010-03-29 14:31:58","blog_url":"https://taramonera.hatenadiary.jp/","provider_url":"https://hatena.blog","categories":["\u30b5\u30fc\u30d0","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaramonera.hatenadiary.jp%2Fentry%2F20100329%2F1270791118\" title=\"PostgreSQL\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406 - \u7b2c2.5\u5730\u533a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}