ejabberd - Comments for "Native PostgreSQL support" https://www.ejabberd.im/node/537 en postgre document https://www.ejabberd.im/node/537#comment-1230 <p>Waiting for postgre document. thanks a lot</p> Tue, 10 Jan 2006 22:32:56 +0000 wysxs comment 1230 at https://www.ejabberd.im ODBC Docs https://www.ejabberd.im/node/537#comment-1202 <p>How far are you? Is it possible to post what you have done so far?</p> Tue, 03 Jan 2006 09:14:10 +0000 Trivial comment 1202 at https://www.ejabberd.im Yes. I have started writing https://www.ejabberd.im/node/537#comment-1179 <p>Yes. I have started writing an ODBC document. Not yet ready however, but I will publish it soon.</p> <p>--<br /> Mickaël Rémond</p> Wed, 21 Dec 2005 17:50:47 +0000 mremond comment 1179 at https://www.ejabberd.im Jungerl build chain is not https://www.ejabberd.im/node/537#comment-1178 <p>Jungerl build chain is not intended to be issued at the library level but for the whole Jungerl compilation.</p> <p>You could simply type erlc *.erl in the jungerl pgsql library.</p> <p>--<br /> Mickaël Rémond</p> Wed, 21 Dec 2005 17:47:29 +0000 mremond comment 1178 at https://www.ejabberd.im Failed to compile PGSQL library https://www.ejabberd.im/node/537#comment-1176 <p>Retrieved the PGSQL code from the sourceforge CVS server and tried to compile it.<br /> ---------------------------------------------------<br /> [186] root@lilo:~/tmp/jungerl/lib/pgsql# make<br /> (cd src;make)<br /> "Makefile", line 1: Could not find ../../../support/include.mk<br /> make: fatal errors encountered -- cannot continue<br /> *** Error code 1</p> <p>Stop in /root/tmp/jungerl/lib/pgsql.<br /> ---------------------------------------------------<br /> Looks like the include.mk file is missing. There is a include.mk.in file. I renamed the file to include.mk, but it still wouldn't compile.</p> <p>---------------------------------------------------<br /> [211] root@lilo:~/tmp/jungerl/lib/pgsql# make<br /> (cd src;make)<br /> "../../../support/include.mk", line 25: Need an operator<br /> "../../../support/include.mk", line 27: Need an operator<br /> "../../../support/include.mk", line 29: Need an operator<br /> "../../../support/include.mk", line 31: Need an operator<br /> make: fatal errors encountered -- cannot continue<br /> *** Error code 1</p> <p>Stop in /root/tmp/jungerl/lib/pgsql.<br /> ---------------------------------------------------</p> <p>What am I missing? It would be much appreciated if someone could please nudge me in the right direction.</p> Wed, 21 Dec 2005 09:03:51 +0000 Trivial comment 1176 at https://www.ejabberd.im Re: Preliminary instructions https://www.ejabberd.im/node/537#comment-1154 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>I'll ask if this is the correct method. Maybe somebody is able to write a nice tutorial.</p></div> <p>Mickaël said he has very detailed documentation for ODBC and PostgreSQL.</p> Thu, 15 Dec 2005 19:40:45 +0000 sander comment 1154 at https://www.ejabberd.im Preliminary instructions https://www.ejabberd.im/node/537#comment-1153 <p>It seems the documentation does not cover this yet, and the example config does not include any example. </p> <p>Preliminary instructions to use PostgreSQL native support:</p> <ol> <li>Install the library: <noindex><a href="http://jungerl.cvs.sourceforge.net/jungerl/jungerl/lib/pgsql/" rel="nofollow" >PGSQL</a></noindex> </li><li>Create the database </li><li>Import the file ejabberd/src/pg.sql to the new database </li><li>Configure ejabberd to use this method. On ejabberd.cfg<br /> <pre>{auth_method, odbc}. {odbc_server, {pgsql, Server, Database, Username, Password}}.</pre><p> Example values:</p> <pre>{odbc_server, {pgsql, "localhost", "erlang_example", "cos", ""}}.</pre></li><li>Start ejabberd on interactive mode (removing Erlang options such as -detached) and call manually the functions exported by the module ejd2odbc to generate SQL formatted dump files. </li></ol> <p>Note that even if the configuration seems to use ODBC, ejabberd uses in fact the pgsql library, with no ODBC involved.</p> <p>I'll ask if this is the correct method. Maybe somebody is able to write a nice tutorial.</p> Thu, 15 Dec 2005 19:28:47 +0000 mfoss comment 1153 at https://www.ejabberd.im