<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>eiji8pou</author_name>
  <author_url>https://blog.hatena.ne.jp/eiji8pou/</author_url>
  <blog_title>eiji8pou's diary</blog_title>
  <blog_url>https://eiji8pou.hatenadiary.com/</blog_url>
  <categories>
    <anon>Perl</anon>
    <anon>PostgreSQL</anon>
  </categories>
  <description>セッションデータの削除 - 永字八法の改良版。つーか、こっちのが全然いい。 PerlからCGI::Sessionを通じてPostgreSQLを使ってセッション管理をしている場合、古いセッションを自動で削除していく方法を考える。 １・セッション情報テーブルにカラムを一つ追加する。 idとa_sessionカラムに加え、セッションの最終更新日を登録するlast_updateを追加する。このlast_updateはtimestamp型で、初期値はnow()とする。 ALTER TABLE sessions ADD last_update TIMESTAMP WITHOUT TIME ZONE DEF…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feiji8pou.hatenadiary.com%2Fentry%2F20070609%2F1181381759&quot; title=&quot;古いセッションの削除 - eiji8pou&amp;#39;s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-06-09 18:35:59</published>
  <title>古いセッションの削除</title>
  <type>rich</type>
  <url>https://eiji8pou.hatenadiary.com/entry/20070609/1181381759</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
