$OpenBSD: patch-glom_libglom_connectionpool_backends_postgres_self_cc,v 1.4 2012/11/07 14:04:18 jasper Exp $
--- glom/libglom/connectionpool_backends/postgres_self.cc.orig	Tue Nov  6 10:02:55 2012
+++ glom/libglom/connectionpool_backends/postgres_self.cc	Wed Nov  7 13:59:45 2012
@@ -409,7 +409,11 @@ Backend::StartupErrors PostgresSelfHosted::startup(con
                                   + " -h " + listen_address
                                   + " -c hba_file=" + Glib::shell_quote(dbdir_hba)
                                   + " -k " + Glib::shell_quote(dbdir)
+#ifdef __OpenBSD__
+; /* The --external_pid_file option is a no-op and pidfile is fixed to dbdir_data/postmaster.pid */
+#else
                                   + " --external_pid_file=" + Glib::shell_quote(dbdir_pid);
+#endif
   //std::cout << G_STRFUNC << ": debug: " << command_postgres_start << std::endl;
 
   // Make sure to use double quotes for the executable path, because the
