<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-781</id>
	<title>Nabble - PostgreSQL - hackers-win32</title>
	<updated>2007-04-24T23:43:04Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/PostgreSQL---hackers-win32-f781.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PostgreSQL---hackers-win32-f781.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-10174722</id>
	<title>sos, help me</title>
	<published>2007-04-24T23:43:04Z</published>
	<updated>2007-04-24T23:43:04Z</updated>
	<author>
		<name>shieldy</name>
	</author>
	<content type="html">as I installed the postgresql, and also get the postgresql code. after that, I also installed the cygwin on my computer( as my os is windows xp). but now I wonder what's my next step. as I have extends some aspects in the postgresql spatial data. can you give me some suggestions on how should I go on? thankyou! 
&lt;br&gt;I just wanto know how to build the postgresql in windows.
&lt;br&gt;can you give me some tips. although I have look up the doc of postgresql8.2, but havenot gotten the wondering things. as the doc puzzled me.
&lt;br&gt;&lt;br&gt;thankyou
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sos%2C-help-me-tp10174722p10174722.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-2622950</id>
	<title>Re: Query on support for trigger functions defined in a Shared library in Windows</title>
	<published>2006-01-27T09:44:45Z</published>
	<updated>2006-01-27T09:44:45Z</updated>
	<author>
		<name>Mehul Doshi-A20614</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Here's a weird scenario that seems to be coming out of so many different
&lt;br&gt;options.
&lt;br&gt;a) When the dll is placed in C:\Program Files\PostgreSQL\8.0\bin it
&lt;br&gt;works.
&lt;br&gt;b) When the dll is placed in C:\Program Files\Test\lib, it fails if
&lt;br&gt;dynamic_library_path is set to 'C:\Program Files\Test\lib;$libdir'
&lt;br&gt;&lt;br&gt;However I had help from two people on this, 
&lt;br&gt;i) Jean Marc: Replace \ with / i.e dynamic_library_path is set to
&lt;br&gt;'C:/Program Files/Test/lib;$libdir'
&lt;br&gt;ii) Thomas Hallgreen: Do \\ instead of just \. i.e. dynamic_library_path
&lt;br&gt;is set to 'C:\\Program Files\\Test\\lib;$libdir'
&lt;br&gt;&lt;br&gt;Now both of these &amp;quot;start to&amp;quot; work after some time only. There is no
&lt;br&gt;logic that I can explain as to how they work.
&lt;br&gt;Here's what I have tried to do to understand this behavior. 
&lt;br&gt;&lt;br&gt;a) Uninstall postgres completely and delete the data folder.
&lt;br&gt;b) Re-install Postgres.
&lt;br&gt;c) Modify the postgresql.conf file with either of the methods. I used
&lt;br&gt;method (ii) since it is more Windows like.
&lt;br&gt;d) Modify the System Variable PATH to contain the extra term &amp;quot;C:\Program
&lt;br&gt;Files\Test\lib&amp;quot;
&lt;br&gt;d) Now I stop the service, start the service. I even rebooted my system.
&lt;br&gt;e) On a new command prompt, I test it out ... Error as before. I can
&lt;br&gt;verify the PATH variable does have C:\Program Files\Test\lib in it.
&lt;br&gt;f) Anyways since I can't do much, I go back and add the dll to the bin
&lt;br&gt;folder and start using it.
&lt;br&gt;g) I can now go back to first command prompt and retest it starts to
&lt;br&gt;work!!!. It works with libdir.
&lt;br&gt;i)I can also go back and modify and delete the dll file that I placed in
&lt;br&gt;the bin folder.
&lt;br&gt;j) I can again retest the dll and it works fine. 
&lt;br&gt;&lt;br&gt;Infact it starts to take the dynamic path perfectly. 
&lt;br&gt;test=# CREATE OR REPLACE FUNCTION trigf_test_pid_insert() RETURNS
&lt;br&gt;trigger
&lt;br&gt;test-# &amp;nbsp; AS 'testrigfuncs'
&lt;br&gt;test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;CREATE FUNCTION
&lt;br&gt;test=# \q
&lt;br&gt;&lt;br&gt;I have tried this on 4 different systems running Windows XP (Service
&lt;br&gt;Packs 1 &amp; 2) using PostgreSQL 8.0 as well as PostgreSQL 8.1.
&lt;br&gt;Any clues as to why it won't work till I placed the dll in
&lt;br&gt;Postgresql\bin folder and then once I have placed the dll there and
&lt;br&gt;used it, it starts to work at either places even if I delete the dll
&lt;br&gt;from the bin folder.
&lt;br&gt;&lt;br&gt;Thanks &amp; Regards,
&lt;br&gt;Mehul
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=2622950&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32-owner@...&lt;/a&gt;
&lt;br&gt;[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=2622950&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32-owner@...&lt;/a&gt;] On Behalf Of Magnus
&lt;br&gt;Hagander
&lt;br&gt;Sent: Friday, January 27, 2006 2:32 AM
&lt;br&gt;To: Mehul Doshi-A20614; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=2622950&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [pgsql-hackers-win32] Query on support for trigger
&lt;br&gt;functions defined in a Shared library in Windows
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Windows for the same I get: (Includes extra \ to account for 
&lt;br&gt;&amp;gt; Windows)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; test=# CREATE OR REPLACE FUNCTION trigf_test_pid_insert() RETURNS 
&lt;br&gt;&amp;gt; trigger
&lt;br&gt;&amp;gt; test-# &amp;nbsp; AS 'C:\\Program Files\\Test\\lib\\testtrigfuncs.dll'
&lt;br&gt;&amp;gt; test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;&amp;gt; ERROR: &amp;nbsp;could not load library &amp;quot;C:\Program
&lt;br&gt;&amp;gt; Files\Test\lib\testtrigfuncs.dll&amp;quot;: The specified module could not be 
&lt;br&gt;&amp;gt; found.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I went and modified the dynamic_library_path to dynamic_library_path =
&lt;/div&gt;&lt;br&gt;&amp;gt; 'C:\Program Files\Test\lib;$libdir'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I also added C:\Program Files\Test\lib to the PATH variable. 
&lt;br&gt;&amp;gt; I restarted postgres service and then retried the below.
&lt;br&gt;&lt;br&gt;Are you sure you added this to the SYSTEM path and not the USER path?
&lt;br&gt;Because if it's the second, it won't affect the pg service. I'd also try
&lt;br&gt;a reboot after changing the one in SYSTEM - I've seen cases where it
&lt;br&gt;didn't &amp;quot;take&amp;quot; even if the service was restarted.
&lt;br&gt;&lt;br&gt;//Magnus
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 5: don't forget to increase your free space map settings
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 2: Don't 'kill -9' the postmaster
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Query-on-support-for-trigger-functions-defined-in-a-Shared-library-in-Windows-tp2564969p2622950.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-2616134</id>
	<title>Re: Query on support for trigger functions defined in a Shared library in Windows</title>
	<published>2006-01-27T02:00:51Z</published>
	<updated>2006-01-27T02:00:51Z</updated>
	<author>
		<name>Reini Urban</name>
	</author>
	<content type="html">2006/1/24, Mehul Doshi-A20614 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=2616134&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mehul@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; This is related to the problem that I faced some time ago. I have
&lt;br&gt;&amp;gt; created a dll library file with inbuilt constraints and triggers.
&lt;br&gt;&amp;gt; I also built the same for Linux environment. Here's what I am facing.
&lt;br&gt;&amp;gt; Any clues as to what I am doing wrong?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Linux: Fedora Core 2 Running Postgresql 7.4.2
&lt;br&gt;&amp;gt; Windows: Windows XP Service Pack 2 running PostgreSQL 8.1.2
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The testtrigfuncs.dll is placed in C:\Program Files\Test\lib\ directory
&lt;br&gt;&amp;gt; and in Linux it is placed in /opt/WMS/rel/lib/testtrigfuncs.so
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On linux when I do the following it works:
&lt;br&gt;&amp;gt; createdb test
&lt;br&gt;&amp;gt; test=# CREATE OR REPLACE FUNCTION trigf_test_pid_insert() RETURNS
&lt;br&gt;&amp;gt; trigger
&lt;br&gt;&amp;gt; test-# &amp;nbsp; AS '/opt/WMS/rel/lib/testtrigfuncs.so'
&lt;br&gt;&amp;gt; test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;&amp;gt; CREATE FUNCTION
&lt;br&gt;&amp;gt; test=#
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Windows for the same I get: (Includes extra \ to account for Windows)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; test=# CREATE OR REPLACE FUNCTION trigf_test_pid_insert() RETURNS
&lt;br&gt;&amp;gt; trigger
&lt;br&gt;&amp;gt; test-# &amp;nbsp; AS 'C:\\Program Files\\Test\\lib\\testtrigfuncs.dll'
&lt;br&gt;&amp;gt; test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;&amp;gt; ERROR: &amp;nbsp;could not load library &amp;quot;C:\Program
&lt;br&gt;&amp;gt; Files\Test\lib\testtrigfuncs.dll&amp;quot;: The specified module could not be
&lt;br&gt;&amp;gt; found.
&lt;/div&gt;&lt;br&gt;Surround the path with extra &amp;quot;&amp;quot; because of the space in the path.
&lt;br&gt;&lt;br&gt;AS '&amp;quot;C:\\Program Files\\Test\\lib\\testtrigfuncs.dll&amp;quot;'
&lt;br&gt;&lt;br&gt;Or better move your lib to a path without spaces.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I went and modified the dynamic_library_path to
&lt;br&gt;&amp;gt; dynamic_library_path = 'C:\Program Files\Test\lib;$libdir'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I also added C:\Program Files\Test\lib to the PATH variable. I restarted
&lt;br&gt;&amp;gt; postgres service and then retried the below.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; test=# CREATE OR REPLACE FUNCTION trigf_test_pid_insert() RETURNS
&lt;br&gt;&amp;gt; trigger
&lt;br&gt;&amp;gt; test-# &amp;nbsp; AS 'C:\Program Files\Test\lib\testtrigfuncs.dll'
&lt;br&gt;&amp;gt; test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;&amp;gt; ERROR: &amp;nbsp;component in parameter &amp;quot;dynamic_library_path&amp;quot; is not an absolute
&lt;br&gt;&amp;gt; path
&lt;br&gt;&amp;gt; test=#
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What is this absolute path? Where do I set it? While I know that if I
&lt;br&gt;&amp;gt; place
&lt;br&gt;&amp;gt; testtrigfuncs.dll in C:\Program Files\PostgreSQL\8.1\bin folder and do
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; same it works.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; test=# CREATE OR REPLACE FUNCTION trigf_stdhlr_pid_insert() RETURNS
&lt;br&gt;&amp;gt; trigger
&lt;br&gt;&amp;gt; test-# &amp;nbsp; AS 'C:\\Program Files\\PostgreSQL\\8.1\\bin\\testtrigfuncs.dll'
&lt;br&gt;&amp;gt; test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;&amp;gt; CREATE FUNCTION
&lt;br&gt;&amp;gt; test=#
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any clues on what I need to do to go ahead would be great. I want to be
&lt;br&gt;&amp;gt; able to do the
&lt;br&gt;&amp;gt; same thing on both Linux and Windows without having to write in
&lt;br&gt;&amp;gt; PostgreSQL\bin folder
&lt;br&gt;&amp;gt; where my program has no use of being there.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks &amp; Regards,
&lt;br&gt;&amp;gt; Mehul
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Mehul Doshi-A20614
&lt;br&gt;&amp;gt; Sent: Wednesday, July 27, 2005 8:35 AM
&lt;br&gt;&amp;gt; To: 'Magnus Hagander'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=2616134&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Cc: Mehul Doshi-A20614
&lt;br&gt;&amp;gt; Subject: RE: [pgsql-hackers-win32] Query on support for trigger
&lt;br&gt;&amp;gt; functions defined in a Shared library in Windows
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Magnus,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks. That helped me. I used MingW to compile the code. I still used
&lt;br&gt;&amp;gt; 8.0.0 because it is the version that we are currently working on. I will
&lt;br&gt;&amp;gt; migrate to 8.0.3 once I am Able to validate the entire setup.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I did get another problem, if you could help me out, it would be great.
&lt;br&gt;&amp;gt; Problem Description:
&lt;br&gt;&amp;gt; 1) I generated the dll using the code.
&lt;br&gt;&amp;gt; 2) Added the following in postgresql.conf:
&lt;br&gt;&amp;gt; dynamic_library_path = 'C:\test\lib,$libdir'
&lt;br&gt;&amp;gt; The above didn't work so I went ahead and copied the dll into C:\Program
&lt;br&gt;&amp;gt; Files\PostgreSQL\8.0\lib\
&lt;br&gt;&amp;gt; 3) I restarted the postmaster both times. I got this error both times.
&lt;br&gt;&amp;gt; :25: ERROR: &amp;nbsp;could not load library &amp;quot;C:/Program
&lt;br&gt;&amp;gt; Files/PostgreSQL/8.0/lib/testtrigfuncs.dll&amp;quot;: dynamic load error
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The log shows:
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;InitPostgres
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;StartTransaction
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;name: unnamed; blockState: &amp;nbsp; &amp;nbsp; &amp;nbsp; DEFAULT;
&lt;br&gt;&amp;gt; state: INPROGR, xid/subid/cid: 33475/1/0, nestlvl: 1, children: &amp;lt;&amp;gt;
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;CommitTransaction
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;name: unnamed; blockState: &amp;nbsp; &amp;nbsp; &amp;nbsp; STARTED;
&lt;br&gt;&amp;gt; state: INPROGR, xid/subid/cid: 33475/1/0, nestlvl: 1, children: &amp;lt;&amp;gt;
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;StartTransactionCommand
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;StartTransaction
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;name: unnamed; blockState: &amp;nbsp; &amp;nbsp; &amp;nbsp; DEFAULT;
&lt;br&gt;&amp;gt; state: INPROGR, xid/subid/cid: 33476/1/0, nestlvl: 1, children: &amp;lt;&amp;gt;
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;ProcessUtility
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;find_in_dynamic_libpath: trying &amp;quot;C:/Program
&lt;br&gt;&amp;gt; Files/PostgreSQL/8.0/lib/testtrigfuncs.dll&amp;quot;
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 ERROR: &amp;nbsp;could not load library &amp;quot;C:/Program
&lt;br&gt;&amp;gt; Files/PostgreSQL/8.0/lib/testtrigfuncs.dll&amp;quot;: dynamic load error
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;proc_exit(0)
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;shmem_exit(0)
&lt;br&gt;&amp;gt; 2005-07-26 22:38:07 DEBUG: &amp;nbsp;exit(0)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, when I ran the newly compiled postgres code (along with my test
&lt;br&gt;&amp;gt; dll in /usr/local/pgsql/lib) via msys. It didn't give me any such errors
&lt;br&gt;&amp;gt; and everything worked out fine. I don't know what I need to do to make
&lt;br&gt;&amp;gt; this dll which I built run with the already installed version of
&lt;br&gt;&amp;gt; PostgreSQL (8.0.0). I can upgrade it to 8.0.3 if it solves the problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please let me know. Thanks &amp; have a nice day.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks &amp; Regards,
&lt;br&gt;&amp;gt; Mehul
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------(end of broadcast)---------------------------
&lt;br&gt;&amp;gt; TIP 1: if posting/reading through Usenet, please send an appropriate
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;subscribe-nomail command to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=2616134&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt; so that your
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;message can get through to the mailing list cleanly
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Reini Urban
&lt;br&gt;&lt;a href=&quot;http://phpwiki.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://phpwiki.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://spacemovie.mur.at/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://spacemovie.mur.at/&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 4: Have you searched our list archives?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://archives.postgresql.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Query-on-support-for-trigger-functions-defined-in-a-Shared-library-in-Windows-tp2564969p2616134.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-2615035</id>
	<title>Re: Query on support for trigger functions defined in a Shared library in Windows</title>
	<published>2006-01-27T00:31:59Z</published>
	<updated>2006-01-27T00:31:59Z</updated>
	<author>
		<name>Magnus Hagander</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; On Windows for the same I get: (Includes extra \ to account 
&lt;br&gt;&amp;gt; for Windows)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; test=# CREATE OR REPLACE FUNCTION trigf_test_pid_insert() 
&lt;br&gt;&amp;gt; RETURNS trigger
&lt;br&gt;&amp;gt; test-# &amp;nbsp; AS 'C:\\Program Files\\Test\\lib\\testtrigfuncs.dll'
&lt;br&gt;&amp;gt; test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;&amp;gt; ERROR: &amp;nbsp;could not load library &amp;quot;C:\Program
&lt;br&gt;&amp;gt; Files\Test\lib\testtrigfuncs.dll&amp;quot;: The specified module could 
&lt;br&gt;&amp;gt; not be found.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I went and modified the dynamic_library_path to 
&lt;br&gt;&amp;gt; dynamic_library_path = 'C:\Program Files\Test\lib;$libdir'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I also added C:\Program Files\Test\lib to the PATH variable. 
&lt;br&gt;&amp;gt; I restarted postgres service and then retried the below.
&lt;/div&gt;&lt;br&gt;Are you sure you added this to the SYSTEM path and not the USER path?
&lt;br&gt;Because if it's the second, it won't affect the pg service. I'd also try
&lt;br&gt;a reboot after changing the one in SYSTEM - I've seen cases where it
&lt;br&gt;didn't &amp;quot;take&amp;quot; even if the service was restarted.
&lt;br&gt;&lt;br&gt;//Magnus
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 5: don't forget to increase your free space map settings
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Query-on-support-for-trigger-functions-defined-in-a-Shared-library-in-Windows-tp2564969p2615035.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-2564969</id>
	<title>Re: Query on support for trigger functions defined in a Shared library in Windows</title>
	<published>2006-01-24T13:21:24Z</published>
	<updated>2006-01-24T13:21:24Z</updated>
	<author>
		<name>Mehul Doshi-A20614</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;This is related to the problem that I faced some time ago. I have
&lt;br&gt;created a dll library file with inbuilt constraints and triggers.
&lt;br&gt;I also built the same for Linux environment. Here's what I am facing.
&lt;br&gt;Any clues as to what I am doing wrong?
&lt;br&gt;&lt;br&gt;Linux: Fedora Core 2 Running Postgresql 7.4.2
&lt;br&gt;Windows: Windows XP Service Pack 2 running PostgreSQL 8.1.2
&lt;br&gt;&lt;br&gt;The testtrigfuncs.dll is placed in C:\Program Files\Test\lib\ directory
&lt;br&gt;and in Linux it is placed in /opt/WMS/rel/lib/testtrigfuncs.so
&lt;br&gt;&lt;br&gt;On linux when I do the following it works:
&lt;br&gt;createdb test
&lt;br&gt;test=# CREATE OR REPLACE FUNCTION trigf_test_pid_insert() RETURNS
&lt;br&gt;trigger
&lt;br&gt;test-# &amp;nbsp; AS '/opt/WMS/rel/lib/testtrigfuncs.so'
&lt;br&gt;test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;CREATE FUNCTION
&lt;br&gt;test=#
&lt;br&gt;&lt;br&gt;On Windows for the same I get: (Includes extra \ to account for Windows)
&lt;br&gt;&lt;br&gt;test=# CREATE OR REPLACE FUNCTION trigf_test_pid_insert() RETURNS
&lt;br&gt;trigger
&lt;br&gt;test-# &amp;nbsp; AS 'C:\\Program Files\\Test\\lib\\testtrigfuncs.dll'
&lt;br&gt;test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;ERROR: &amp;nbsp;could not load library &amp;quot;C:\Program
&lt;br&gt;Files\Test\lib\testtrigfuncs.dll&amp;quot;: The specified module could not be
&lt;br&gt;found.
&lt;br&gt;&lt;br&gt;I went and modified the dynamic_library_path to
&lt;br&gt;dynamic_library_path = 'C:\Program Files\Test\lib;$libdir'
&lt;br&gt;&lt;br&gt;I also added C:\Program Files\Test\lib to the PATH variable. I restarted
&lt;br&gt;postgres service and then retried the below.
&lt;br&gt;&lt;br&gt;test=# CREATE OR REPLACE FUNCTION trigf_test_pid_insert() RETURNS
&lt;br&gt;trigger
&lt;br&gt;test-# &amp;nbsp; AS 'C:\Program Files\Test\lib\testtrigfuncs.dll'
&lt;br&gt;test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;ERROR: &amp;nbsp;component in parameter &amp;quot;dynamic_library_path&amp;quot; is not an absolute
&lt;br&gt;path
&lt;br&gt;test=#
&lt;br&gt;&lt;br&gt;What is this absolute path? Where do I set it? While I know that if I
&lt;br&gt;place 
&lt;br&gt;testtrigfuncs.dll in C:\Program Files\PostgreSQL\8.1\bin folder and do
&lt;br&gt;the
&lt;br&gt;same it works. 
&lt;br&gt;&lt;br&gt;test=# CREATE OR REPLACE FUNCTION trigf_stdhlr_pid_insert() RETURNS
&lt;br&gt;trigger
&lt;br&gt;test-# &amp;nbsp; AS 'C:\\Program Files\\PostgreSQL\\8.1\\bin\\testtrigfuncs.dll'
&lt;br&gt;test-# &amp;nbsp; LANGUAGE C ;
&lt;br&gt;CREATE FUNCTION
&lt;br&gt;test=#
&lt;br&gt;&lt;br&gt;Any clues on what I need to do to go ahead would be great. I want to be
&lt;br&gt;able to do the
&lt;br&gt;same thing on both Linux and Windows without having to write in
&lt;br&gt;PostgreSQL\bin folder
&lt;br&gt;where my program has no use of being there.
&lt;br&gt;&lt;br&gt;Thanks &amp; Regards,
&lt;br&gt;Mehul
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Mehul Doshi-A20614 
&lt;br&gt;Sent: Wednesday, July 27, 2005 8:35 AM
&lt;br&gt;To: 'Magnus Hagander'; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=2564969&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;
&lt;br&gt;Cc: Mehul Doshi-A20614
&lt;br&gt;Subject: RE: [pgsql-hackers-win32] Query on support for trigger
&lt;br&gt;functions defined in a Shared library in Windows
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi Magnus,
&lt;br&gt;&lt;br&gt;Thanks. That helped me. I used MingW to compile the code. I still used
&lt;br&gt;8.0.0 because it is the version that we are currently working on. I will
&lt;br&gt;migrate to 8.0.3 once I am Able to validate the entire setup.
&lt;br&gt;&lt;br&gt;I did get another problem, if you could help me out, it would be great.
&lt;br&gt;Problem Description:
&lt;br&gt;1) I generated the dll using the code.
&lt;br&gt;2) Added the following in postgresql.conf: 
&lt;br&gt;dynamic_library_path = 'C:\test\lib,$libdir' 
&lt;br&gt;The above didn't work so I went ahead and copied the dll into C:\Program
&lt;br&gt;Files\PostgreSQL\8.0\lib\
&lt;br&gt;3) I restarted the postmaster both times. I got this error both times.
&lt;br&gt;:25: ERROR: &amp;nbsp;could not load library &amp;quot;C:/Program
&lt;br&gt;Files/PostgreSQL/8.0/lib/testtrigfuncs.dll&amp;quot;: dynamic load error
&lt;br&gt;&lt;br&gt;The log shows:
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;InitPostgres
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;StartTransaction
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;name: unnamed; blockState: &amp;nbsp; &amp;nbsp; &amp;nbsp; DEFAULT;
&lt;br&gt;state: INPROGR, xid/subid/cid: 33475/1/0, nestlvl: 1, children: &amp;lt;&amp;gt;
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;CommitTransaction
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;name: unnamed; blockState: &amp;nbsp; &amp;nbsp; &amp;nbsp; STARTED;
&lt;br&gt;state: INPROGR, xid/subid/cid: 33475/1/0, nestlvl: 1, children: &amp;lt;&amp;gt;
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;StartTransactionCommand
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;StartTransaction
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;name: unnamed; blockState: &amp;nbsp; &amp;nbsp; &amp;nbsp; DEFAULT;
&lt;br&gt;state: INPROGR, xid/subid/cid: 33476/1/0, nestlvl: 1, children: &amp;lt;&amp;gt;
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;ProcessUtility
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;find_in_dynamic_libpath: trying &amp;quot;C:/Program
&lt;br&gt;Files/PostgreSQL/8.0/lib/testtrigfuncs.dll&amp;quot;
&lt;br&gt;2005-07-26 22:38:07 ERROR: &amp;nbsp;could not load library &amp;quot;C:/Program
&lt;br&gt;Files/PostgreSQL/8.0/lib/testtrigfuncs.dll&amp;quot;: dynamic load error
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;proc_exit(0)
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;shmem_exit(0)
&lt;br&gt;2005-07-26 22:38:07 DEBUG: &amp;nbsp;exit(0)
&lt;br&gt;&lt;br&gt;However, when I ran the newly compiled postgres code (along with my test
&lt;br&gt;dll in /usr/local/pgsql/lib) via msys. It didn't give me any such errors
&lt;br&gt;and everything worked out fine. I don't know what I need to do to make
&lt;br&gt;this dll which I built run with the already installed version of
&lt;br&gt;PostgreSQL (8.0.0). I can upgrade it to 8.0.3 if it solves the problem.
&lt;br&gt;&lt;br&gt;Please let me know. Thanks &amp; have a nice day.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks &amp; Regards,
&lt;br&gt;Mehul
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 1: if posting/reading through Usenet, please send an appropriate
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;subscribe-nomail command to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=2564969&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt; so that your
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;message can get through to the mailing list cleanly
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Query-on-support-for-trigger-functions-defined-in-a-Shared-library-in-Windows-tp2564969p2564969.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-904619</id>
	<title>Re: Time to close hackers-win32?</title>
	<published>2005-09-19T19:17:26Z</published>
	<updated>2005-09-19T19:17:26Z</updated>
	<author>
		<name>Bruce Momjian-2</name>
	</author>
	<content type="html">Magnus Hagander wrote:
&lt;br&gt;&amp;gt; &amp;gt; It occurs to me that there is no longer any great need to 
&lt;br&gt;&amp;gt; &amp;gt; have a separate hackers list for win32 development. Perhaps 
&lt;br&gt;&amp;gt; &amp;gt; we should close it down now and keep all development on -hackers?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I also think this is a good idea. The number of &amp;quot;win32 only issues of
&lt;br&gt;&amp;gt; -hacker level&amp;quot; is significantly smaller now, and having to bounce people
&lt;br&gt;&amp;gt; between the lists can be kind of annoying...
&lt;br&gt;&lt;br&gt;Agreed.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; Bruce Momjian &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;&lt;a href=&quot;http://candle.pha.pa.us&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://candle.pha.pa.us&lt;/a&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=904619&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgman@...&lt;/a&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp;(610) 359-1001
&lt;br&gt;&amp;nbsp; + &amp;nbsp;If your life is a hard drive, &amp;nbsp; &amp;nbsp; | &amp;nbsp;13 Roberts Road
&lt;br&gt;&amp;nbsp; + &amp;nbsp;Christ can be your backup. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;Newtown Square, Pennsylvania 19073
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 5: don't forget to increase your free space map settings
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Time-to-close-hackers-win32--tp878769p904619.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-891271</id>
	<title>Re: [HACKERS] Time to close pgsql-cygwin?</title>
	<published>2005-09-18T05:07:51Z</published>
	<updated>2005-09-18T05:07:51Z</updated>
	<author>
		<name>Reini Urban</name>
	</author>
	<content type="html">Magnus Hagander schrieb:
&lt;br&gt;&amp;gt;&amp;gt;It occurs to me that there is no longer any great need to 
&lt;br&gt;&amp;gt;&amp;gt;have a separate hackers list for win32 development. Perhaps 
&lt;br&gt;&amp;gt;&amp;gt;we should close it down now and keep all development on -hackers?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I also think this is a good idea. The number of &amp;quot;win32 only issues of
&lt;br&gt;&amp;gt; -hacker level&amp;quot; is significantly smaller now, and having to bounce people
&lt;br&gt;&amp;gt; between the lists can be kind of annoying...
&lt;br&gt;&lt;br&gt;I believe we should close pgsql-cygwin also.
&lt;br&gt;&lt;br&gt;The cygwin users should ask at the official cygwin list as described in 
&lt;br&gt;the README and CYGWIN announcements, not at the pgsql-cygwin list.
&lt;br&gt;Most problems are cygwin specific, others are carried in the FAQ_README 
&lt;br&gt;and the seperate /usr/share/doc/Cygwin/postgresql-x.x.x.README
&lt;br&gt;&lt;br&gt;If so, I'll write a documentation patch.
&lt;br&gt;-- 
&lt;br&gt;Reini Urban
&lt;br&gt;&lt;a href=&quot;http://phpwiki.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://phpwiki.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 4: Have you searched our list archives?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://archives.postgresql.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Time-to-close-hackers-win32--tp878769p891271.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-887176</id>
	<title>Re: [HACKERS] Time to close hackers-win32?</title>
	<published>2005-09-17T06:48:05Z</published>
	<updated>2005-09-17T06:48:05Z</updated>
	<author>
		<name>Magnus Hagander</name>
	</author>
	<content type="html">&amp;gt; It occurs to me that there is no longer any great need to 
&lt;br&gt;&amp;gt; have a separate hackers list for win32 development. Perhaps 
&lt;br&gt;&amp;gt; we should close it down now and keep all development on -hackers?
&lt;br&gt;&lt;br&gt;I also think this is a good idea. The number of &amp;quot;win32 only issues of
&lt;br&gt;-hacker level&amp;quot; is significantly smaller now, and having to bounce people
&lt;br&gt;between the lists can be kind of annoying...
&lt;br&gt;&lt;br&gt;//Magnus
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 1: if posting/reading through Usenet, please send an appropriate
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;subscribe-nomail command to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=887176&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt; so that your
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;message can get through to the mailing list cleanly
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Time-to-close-hackers-win32--tp878769p887176.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-879685</id>
	<title>Re: [HACKERS] Time to close hackers-win32?</title>
	<published>2005-09-16T07:26:03Z</published>
	<updated>2005-09-16T07:26:03Z</updated>
	<author>
		<name>Merlin Moncure</name>
	</author>
	<content type="html">&amp;gt; It occurs to me that there is no longer any great need to have a
&lt;br&gt;&amp;gt; separate hackers list for win32 development. Perhaps we should close
&lt;br&gt;it
&lt;br&gt;&amp;gt; down now and keep all development on -hackers?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;agreed. &amp;nbsp;The more development centered stuff belongs on -hackers and the
&lt;br&gt;really win32 specific stuff should be on -ports, the traffic has slowed
&lt;br&gt;down to the point where it hopefully won't take over that list... &amp;nbsp;
&lt;br&gt;&lt;br&gt;Merlin
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 2: Don't 'kill -9' the postmaster
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--HACKERS--Time-to-close-hackers-win32--tp879685p879685.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-878769</id>
	<title>Time to close hackers-win32?</title>
	<published>2005-09-16T04:54:10Z</published>
	<updated>2005-09-16T04:54:10Z</updated>
	<author>
		<name>Dave Page</name>
	</author>
	<content type="html">It occurs to me that there is no longer any great need to have a
&lt;br&gt;separate hackers list for win32 development. Perhaps we should close it
&lt;br&gt;down now and keep all development on -hackers?
&lt;br&gt;&lt;br&gt;Regards, Dave.
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 5: don't forget to increase your free space map settings
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Time-to-close-hackers-win32--tp878769p878769.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-872393</id>
	<title>Re: Server Time Setting</title>
	<published>2005-09-15T10:59:54Z</published>
	<updated>2005-09-15T10:59:54Z</updated>
	<author>
		<name>Andrew Dunstan</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Lane Van Ingen wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;If I am following this correctly, I may have solved the problem for myself
&lt;br&gt;&amp;gt;in
&lt;br&gt;&amp;gt;the Eastern time zone, but this application gets deployed around the world,
&lt;br&gt;&amp;gt;anywhere at sea that a vessel can go. While I think the vessel sets its time
&lt;br&gt;&amp;gt;based on its home port and keeps it that way through voyage(s), I am won-
&lt;br&gt;&amp;gt;dering if handling of time is still going to give me problems outside of
&lt;br&gt;&amp;gt;time
&lt;br&gt;&amp;gt;zones where DST is being observed.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;If they set the machine to the home port's time and leave it there that 
&lt;br&gt;should be no problem, as long as they select DST adjustment if it's a 
&lt;br&gt;zone that uses DST. In fact I suspect they can set it anyway, regardless 
&lt;br&gt;of TZ, because if the zone doesn't have DST nothing should happen. Test 
&lt;br&gt;it and see.
&lt;br&gt;&lt;br&gt;The trouble with any sort of detection/correction would be that if the 
&lt;br&gt;DST flag is off we have no idea whether the user has left the time on 
&lt;br&gt;the zone's base and so it shows an hour's difference from actual local 
&lt;br&gt;time, or if they have set it to the DST time manually and thus more or 
&lt;br&gt;less lied about the value of UTC. I've seen both happen, many times.
&lt;br&gt;&lt;br&gt;cheers
&lt;br&gt;&lt;br&gt;andrew
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 9: In versions below 8.0, the planner will ignore your desire to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;choose an index scan if your joining column's datatypes do not
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;match
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Server-Time-Setting-tp870540p872393.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-872123</id>
	<title>Re: Server Time Setting</title>
	<published>2005-09-15T10:37:24Z</published>
	<updated>2005-09-15T10:37:24Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Andrew Dunstan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=872123&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andrew@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; Tom Lane wrote:
&lt;br&gt;&amp;gt;&amp;gt; Should pgtz.c try to detect this situation and handle it by mapping to a
&lt;br&gt;&amp;gt;&amp;gt; non-DST-aware internal timezone?
&lt;br&gt;&lt;br&gt;&amp;gt; I think this is a simple case of misconfiguration and I suspect fiddling 
&lt;br&gt;&amp;gt; with it would just open up the possibility of more errors.
&lt;br&gt;&lt;br&gt;Maybe. &amp;nbsp;The other thing that's worrisome here is the likelihood that
&lt;br&gt;people would fiddle with the setting after starting Postgres; which
&lt;br&gt;is a scenario we really can't do much about, but AFAICS it would have
&lt;br&gt;the same effect that now() would deviate from what the system clock
&lt;br&gt;is showing.
&lt;br&gt;&lt;br&gt;I'm not sure it's worth the trouble to try to handle the &amp;quot;box not
&lt;br&gt;checked&amp;quot; case fully --- as you say, anyone who's handling DST by
&lt;br&gt;manually adjusting the system clock twice a year is going to lose
&lt;br&gt;anyway. &amp;nbsp;But if we can detect that setting easily, maybe we could just
&lt;br&gt;insist that it match the behavior we're expecting (ie, fail to find a
&lt;br&gt;matching timezone and complain about it)? &amp;nbsp;It seems to me better that
&lt;br&gt;there be an obvious failure immediately than that the system appear to
&lt;br&gt;work only to start giving wrong answers after the next time change.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regards, tom lane
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 6: explain analyze is your friend
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Server-Time-Setting-tp870540p872123.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-871990</id>
	<title>Re: Server Time Setting</title>
	<published>2005-09-15T10:20:17Z</published>
	<updated>2005-09-15T10:20:17Z</updated>
	<author>
		<name>Lane Van Ingen</name>
	</author>
	<content type="html">&amp;quot;Lane Van Ingen&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=871990&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lvaningen@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; Looks like I may have just solved my own problem: I noticed that in Date
&lt;br&gt;and
&lt;br&gt;&amp;gt; Time Properties of the Windows clock, on the Time Zone tab, there is a
&lt;br&gt;&amp;gt; checkbox
&lt;br&gt;&amp;gt; called &amp;nbsp;&amp;quot;Automatically adjust clock for daylight savings time changes&amp;quot;.
&lt;br&gt;&lt;br&gt;&amp;gt; If that box is unchecked, PostgreSQL must try to compensate, because on
&lt;br&gt;&amp;gt; those
&lt;br&gt;&amp;gt; platforms that are unchecked is where I am having the problem of now()
&lt;br&gt;&amp;gt; returning
&lt;br&gt;&amp;gt; a date that is one hour later. It now works correctly.
&lt;br&gt;&lt;br&gt;Hmm. &amp;nbsp;I think the way that the code in pgtz.c is set up, it just assumes
&lt;br&gt;that either &amp;quot;Eastern Standard Time&amp;quot; or &amp;quot;Eastern Daylight Time&amp;quot; should
&lt;br&gt;map to our US/Eastern timezone (which is a DST-aware zone). &amp;nbsp;Running
&lt;br&gt;your system in non-DST-aware mode is what's confusing it --- the offset
&lt;br&gt;to GMT is an hour different than it &amp;quot;should be&amp;quot; at this time of year.
&lt;br&gt;&lt;br&gt;Should pgtz.c try to detect this situation and handle it by mapping to a
&lt;br&gt;non-DST-aware internal timezone?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regards, tom lane
&lt;br&gt;&lt;br&gt;I think this is a simple case of misconfiguration and I suspect fiddling
&lt;br&gt;with it would just open up the possibility of more errors. If you say
&lt;br&gt;you are in a DST timezone and you don't check the DST checkbox, and you
&lt;br&gt;set the time to summer time then you're asking for trouble. I would not
&lt;br&gt;be at all surprised if the machine's idea of UTC was an hour out
&lt;br&gt;(Windows boxes keep the RTC on local time, not UTC, which is just horrid).
&lt;br&gt;&lt;br&gt;cheers
&lt;br&gt;&lt;br&gt;andrew (dunstan)
&lt;br&gt;&lt;br&gt;If I am following this correctly, I may have solved the problem for myself
&lt;br&gt;in
&lt;br&gt;the Eastern time zone, but this application gets deployed around the world,
&lt;br&gt;anywhere at sea that a vessel can go. While I think the vessel sets its time
&lt;br&gt;based on its home port and keeps it that way through voyage(s), I am won-
&lt;br&gt;dering if handling of time is still going to give me problems outside of
&lt;br&gt;time
&lt;br&gt;zones where DST is being observed.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Lane Van Ingen
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 4: Have you searched our list archives?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://archives.postgresql.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Server-Time-Setting-tp870540p871990.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-871813</id>
	<title>Re: Server Time Setting</title>
	<published>2005-09-15T10:07:26Z</published>
	<updated>2005-09-15T10:07:26Z</updated>
	<author>
		<name>Andrew Dunstan</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Tom Lane wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;Hmm. &amp;nbsp;I think the way that the code in pgtz.c is set up, it just assumes
&lt;br&gt;&amp;gt;that either &amp;quot;Eastern Standard Time&amp;quot; or &amp;quot;Eastern Daylight Time&amp;quot; should
&lt;br&gt;&amp;gt;map to our US/Eastern timezone (which is a DST-aware zone). &amp;nbsp;Running
&lt;br&gt;&amp;gt;your system in non-DST-aware mode is what's confusing it --- the offset
&lt;br&gt;&amp;gt;to GMT is an hour different than it &amp;quot;should be&amp;quot; at this time of year.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Should pgtz.c try to detect this situation and handle it by mapping to a
&lt;br&gt;&amp;gt;non-DST-aware internal timezone?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;I think this is a simple case of misconfiguration and I suspect fiddling 
&lt;br&gt;with it would just open up the possibility of more errors. If you say 
&lt;br&gt;you are in a DST timezone and you don't check the DST checkbox, and you 
&lt;br&gt;set the time to summer time then you're asking for trouble. I would not 
&lt;br&gt;be at all surprised if the machine's idea of UTC was an hour out 
&lt;br&gt;(Windows boxes keep the RTC on local time, not UTC, which is just horrid).
&lt;br&gt;&lt;br&gt;cheers
&lt;br&gt;&lt;br&gt;andrew
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 9: In versions below 8.0, the planner will ignore your desire to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;choose an index scan if your joining column's datatypes do not
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;match
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Server-Time-Setting-tp870540p871813.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-871654</id>
	<title>Re: Server Time Setting</title>
	<published>2005-09-15T09:51:14Z</published>
	<updated>2005-09-15T09:51:14Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">&amp;quot;Lane Van Ingen&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=871654&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lvaningen@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; Looks like I may have just solved my own problem: I noticed that in Date and
&lt;br&gt;&amp;gt; Time Properties of the Windows clock, on the Time Zone tab, there is a
&lt;br&gt;&amp;gt; checkbox
&lt;br&gt;&amp;gt; called &amp;nbsp;&amp;quot;Automatically adjust clock for daylight savings time changes&amp;quot;.
&lt;br&gt;&lt;br&gt;&amp;gt; If that box is unchecked, PostgreSQL must try to compensate, because on
&lt;br&gt;&amp;gt; those
&lt;br&gt;&amp;gt; platforms that are unchecked is where I am having the problem of now()
&lt;br&gt;&amp;gt; returning
&lt;br&gt;&amp;gt; a date that is one hour later. It now works correctly.
&lt;br&gt;&lt;br&gt;Hmm. &amp;nbsp;I think the way that the code in pgtz.c is set up, it just assumes
&lt;br&gt;that either &amp;quot;Eastern Standard Time&amp;quot; or &amp;quot;Eastern Daylight Time&amp;quot; should
&lt;br&gt;map to our US/Eastern timezone (which is a DST-aware zone). &amp;nbsp;Running
&lt;br&gt;your system in non-DST-aware mode is what's confusing it --- the offset
&lt;br&gt;to GMT is an hour different than it &amp;quot;should be&amp;quot; at this time of year.
&lt;br&gt;&lt;br&gt;Should pgtz.c try to detect this situation and handle it by mapping to a
&lt;br&gt;non-DST-aware internal timezone?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regards, tom lane
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 5: don't forget to increase your free space map settings
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Server-Time-Setting-tp870540p871654.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-871251</id>
	<title>Re: Server Time Setting</title>
	<published>2005-09-15T09:16:56Z</published>
	<updated>2005-09-15T09:16:56Z</updated>
	<author>
		<name>Lane Van Ingen</name>
	</author>
	<content type="html">Yes, it reads (GMT-05:00) Eastern Time (US &amp; Canada).
&lt;br&gt;&lt;br&gt;Looks like I may have just solved my own problem: I noticed that in Date and
&lt;br&gt;Time Properties of the Windows clock, on the Time Zone tab, there is a
&lt;br&gt;checkbox
&lt;br&gt;called &amp;nbsp;&amp;quot;Automatically adjust clock for daylight savings time changes&amp;quot;.
&lt;br&gt;&lt;br&gt;If that box is unchecked, PostgreSQL must try to compensate, because on
&lt;br&gt;those
&lt;br&gt;platforms that are unchecked is where I am having the problem of now()
&lt;br&gt;returning
&lt;br&gt;a date that is one hour later. It now works correctly.
&lt;br&gt;&lt;br&gt;Thanks for causing me to check this out; it looks like my problem is solved!
&lt;br&gt;:-)
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Obe, Regina DND\MIS [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=871251&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robe.dnd@...&lt;/a&gt;]
&lt;br&gt;Sent: Thursday, September 15, 2005 9:44 AM
&lt;br&gt;To: 'Lane Van Ingen'; '&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=871251&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;'
&lt;br&gt;Subject: RE: [pgsql-hackers-win32] Server Time Setting
&lt;br&gt;&lt;br&gt;&lt;br&gt;When you say time reads correctly for Windows 2003, &amp;nbsp;I assume you also mean
&lt;br&gt;not just the time but that the Time Zone tab of windows 2003 Adjust time
&lt;br&gt;reads &amp;quot;Eastern Time (US &amp; Canada)&amp;quot;?
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Lane Van Ingen [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=871251&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lvaningen@...&lt;/a&gt;]
&lt;br&gt;Sent: Thursday, September 15, 2005 10:13 AM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=871251&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;
&lt;br&gt;Subject: [pgsql-hackers-win32] Server Time Setting
&lt;br&gt;&lt;br&gt;&lt;br&gt;Tom Lane suggested that perhaps this mailing list would be a better place to
&lt;br&gt;ask the following question ... since we have an application that is very
&lt;br&gt;dependent on the accuracy of timestamps, this is a big issue to us.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Tom Lane [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=871251&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tgl@...&lt;/a&gt;]
&lt;br&gt;Sent: Monday, September 12, 2005 6:42 PM
&lt;br&gt;To: Lane Van Ingen
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=871251&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [ADMIN] Server Time Setting
&lt;br&gt;&lt;br&gt;&amp;quot;Lane Van Ingen&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=871251&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lvaningen@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt; I am baffled as to why some of the PostgreSQL functions (like now() )
&lt;br&gt;&amp;gt;&amp;gt; are returning a time which is exactly an hour later than the server's
&lt;br&gt;&amp;gt;&amp;gt; actual system time.
&lt;br&gt;&lt;br&gt;&amp;gt; I'd say you've got TimeZone set to something different than you think
&lt;br&gt;&amp;gt;you do.
&lt;br&gt;&amp;gt;			regards, tom lane
&lt;br&gt;&lt;br&gt;Before I asked this question yesterday, I had already checked SHOW ALL and
&lt;br&gt;found only two PostgreSQL config parameters that seemed to apply, and they
&lt;br&gt;appeared to be set properly:
&lt;br&gt;&amp;nbsp; australian_timezones &amp;nbsp;= no
&lt;br&gt;&amp;nbsp; TimeZone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= US/Eastern
&lt;br&gt;We are running 8.0.1, Windows 2003.
&lt;br&gt;&lt;br&gt;Since last message, checked 3 other servers, and found that I have the same
&lt;br&gt;problem on two out of three:
&lt;br&gt;&amp;nbsp; Server #1: select now() agreed with Windows time on this one
&lt;br&gt;&amp;nbsp; Server #2: select now() was exactly one hour greater than Windows time
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where config parms were set the same as previous paragraph
&lt;br&gt;&amp;nbsp; Server #3: select now() was exactly one hour greater than Windows time,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;but config parm was set wrong: TimeZone = Europe/Dublin (don't
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;know how that happened; makes you wonder if TimeZone has
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;anything to do with this at all!)
&lt;br&gt;&lt;br&gt;Windows 2003 time was set correctly in all four cases.
&lt;br&gt;&lt;br&gt;Summary:
&lt;br&gt;&amp;nbsp; - one server displays time correctly
&lt;br&gt;&amp;nbsp; - two servers APPEAR to be set correctly in Windows, but time displayed
&lt;br&gt;&amp;nbsp; &amp;nbsp; from now() is one hour greater than Windows time
&lt;br&gt;&amp;nbsp; - one server is set incorrectly (PostgreSQL TimeZone parameter was set to
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dublin/Europe); but TimeZone did not appear to have any effect on the
&lt;br&gt;&amp;nbsp; &amp;nbsp; time being displayed, since now() is displaying time as one hour greater
&lt;br&gt;&amp;nbsp; &amp;nbsp; than Windows time, and Windows time appears to be set correctly
&lt;br&gt;&lt;br&gt;Being as one server is 'doing it right', there must be some difference in
&lt;br&gt;settings, but so far I have not been able to determine what is different.
&lt;br&gt;Windows appeared to be correct in all cases, but PostgreSQL is not.
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 4: Have you searched our list archives?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://archives.postgresql.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 3: Have you checked our extensive FAQ?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.postgresql.org/docs/faq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/faq&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Server-Time-Setting-tp870540p871251.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-871346</id>
	<title>Re: Server Time Setting</title>
	<published>2005-09-15T09:16:20Z</published>
	<updated>2005-09-15T09:16:20Z</updated>
	<author>
		<name>Merlin Moncure</name>
	</author>
	<content type="html">&amp;gt; Being as one server is 'doing it right', there must be some difference
&lt;br&gt;in
&lt;br&gt;&amp;gt; settings, but so far I have not been able to determine what is
&lt;br&gt;different.
&lt;br&gt;&amp;gt; Windows appeared to be correct in all cases, but PostgreSQL is not.
&lt;br&gt;&lt;br&gt;Have you ruled out automatic adjustment for daylight savings time?
&lt;br&gt;&lt;br&gt;Merlin
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 3: Have you checked our extensive FAQ?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.postgresql.org/docs/faq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/faq&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Server-Time-Setting-tp870540p871346.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-870867</id>
	<title>Re: Server Time Setting</title>
	<published>2005-09-15T08:44:12Z</published>
	<updated>2005-09-15T08:44:12Z</updated>
	<author>
		<name>Regina Obe</name>
	</author>
	<content type="html">When you say time reads correctly for Windows 2003, &amp;nbsp;I assume you also mean
&lt;br&gt;not just the time but that the Time Zone tab of windows 2003 Adjust time
&lt;br&gt;reads &amp;quot;Eastern Time (US &amp; Canada)&amp;quot;?
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Lane Van Ingen [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=870867&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lvaningen@...&lt;/a&gt;] 
&lt;br&gt;Sent: Thursday, September 15, 2005 10:13 AM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=870867&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;
&lt;br&gt;Subject: [pgsql-hackers-win32] Server Time Setting
&lt;br&gt;&lt;br&gt;&lt;br&gt;Tom Lane suggested that perhaps this mailing list would be a better place to
&lt;br&gt;ask the following question ... since we have an application that is very
&lt;br&gt;dependent on the accuracy of timestamps, this is a big issue to us.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Tom Lane [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=870867&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tgl@...&lt;/a&gt;]
&lt;br&gt;Sent: Monday, September 12, 2005 6:42 PM
&lt;br&gt;To: Lane Van Ingen
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=870867&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [ADMIN] Server Time Setting
&lt;br&gt;&lt;br&gt;&amp;quot;Lane Van Ingen&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=870867&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lvaningen@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt; I am baffled as to why some of the PostgreSQL functions (like now() ) 
&lt;br&gt;&amp;gt;&amp;gt; are returning a time which is exactly an hour later than the server's 
&lt;br&gt;&amp;gt;&amp;gt; actual system time.
&lt;br&gt;&lt;br&gt;&amp;gt; I'd say you've got TimeZone set to something different than you think &amp;nbsp;
&lt;br&gt;&amp;gt;you do.
&lt;br&gt;&amp;gt;			regards, tom lane
&lt;br&gt;&lt;br&gt;Before I asked this question yesterday, I had already checked SHOW ALL and
&lt;br&gt;found only two PostgreSQL config parameters that seemed to apply, and they
&lt;br&gt;appeared to be set properly:
&lt;br&gt;&amp;nbsp; australian_timezones &amp;nbsp;= no
&lt;br&gt;&amp;nbsp; TimeZone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= US/Eastern
&lt;br&gt;We are running 8.0.1, Windows 2003.
&lt;br&gt;&lt;br&gt;Since last message, checked 3 other servers, and found that I have the same
&lt;br&gt;problem on two out of three:
&lt;br&gt;&amp;nbsp; Server #1: select now() agreed with Windows time on this one
&lt;br&gt;&amp;nbsp; Server #2: select now() was exactly one hour greater than Windows time
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where config parms were set the same as previous paragraph
&lt;br&gt;&amp;nbsp; Server #3: select now() was exactly one hour greater than Windows time,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;but config parm was set wrong: TimeZone = Europe/Dublin (don't
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;know how that happened; makes you wonder if TimeZone has
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;anything to do with this at all!)
&lt;br&gt;&lt;br&gt;Windows 2003 time was set correctly in all four cases.
&lt;br&gt;&lt;br&gt;Summary:
&lt;br&gt;&amp;nbsp; - one server displays time correctly
&lt;br&gt;&amp;nbsp; - two servers APPEAR to be set correctly in Windows, but time displayed
&lt;br&gt;&amp;nbsp; &amp;nbsp; from now() is one hour greater than Windows time
&lt;br&gt;&amp;nbsp; - one server is set incorrectly (PostgreSQL TimeZone parameter was set to
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dublin/Europe); but TimeZone did not appear to have any effect on the
&lt;br&gt;&amp;nbsp; &amp;nbsp; time being displayed, since now() is displaying time as one hour greater
&lt;br&gt;&amp;nbsp; &amp;nbsp; than Windows time, and Windows time appears to be set correctly
&lt;br&gt;&lt;br&gt;Being as one server is 'doing it right', there must be some difference in
&lt;br&gt;settings, but so far I have not been able to determine what is different.
&lt;br&gt;Windows appeared to be correct in all cases, but PostgreSQL is not.
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 4: Have you searched our list archives?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://archives.postgresql.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 2: Don't 'kill -9' the postmaster
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Server-Time-Setting-tp870540p870867.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-870540</id>
	<title>Server Time Setting</title>
	<published>2005-09-15T08:13:21Z</published>
	<updated>2005-09-15T08:13:21Z</updated>
	<author>
		<name>Lane Van Ingen</name>
	</author>
	<content type="html">Tom Lane suggested that perhaps this mailing list would be a better place
&lt;br&gt;to ask the following question ... since we have an application that is very
&lt;br&gt;dependent on the accuracy of timestamps, this is a big issue to us.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Tom Lane [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=870540&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tgl@...&lt;/a&gt;]
&lt;br&gt;Sent: Monday, September 12, 2005 6:42 PM
&lt;br&gt;To: Lane Van Ingen
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=870540&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-admin@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [ADMIN] Server Time Setting
&lt;br&gt;&lt;br&gt;&amp;quot;Lane Van Ingen&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=870540&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lvaningen@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt; I am baffled as to why some of the PostgreSQL functions (like now() ) are
&lt;br&gt;&amp;gt;&amp;gt; returning a time which is exactly an hour later than the server's actual
&lt;br&gt;&amp;gt;&amp;gt; system time.
&lt;br&gt;&lt;br&gt;&amp;gt; I'd say you've got TimeZone set to something different than you think
&lt;br&gt;&amp;gt; you do.
&lt;br&gt;&amp;gt;			regards, tom lane
&lt;br&gt;&lt;br&gt;Before I asked this question yesterday, I had already checked SHOW ALL and
&lt;br&gt;found only two PostgreSQL config parameters that seemed to apply, and they
&lt;br&gt;appeared to be set properly:
&lt;br&gt;&amp;nbsp; australian_timezones &amp;nbsp;= no
&lt;br&gt;&amp;nbsp; TimeZone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= US/Eastern
&lt;br&gt;We are running 8.0.1, Windows 2003.
&lt;br&gt;&lt;br&gt;Since last message, checked 3 other servers, and found that I have the same
&lt;br&gt;problem on two out of three:
&lt;br&gt;&amp;nbsp; Server #1: select now() agreed with Windows time on this one
&lt;br&gt;&amp;nbsp; Server #2: select now() was exactly one hour greater than Windows time
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where config parms were set the same as previous paragraph
&lt;br&gt;&amp;nbsp; Server #3: select now() was exactly one hour greater than Windows time,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;but config parm was set wrong: TimeZone = Europe/Dublin (don't
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;know how that happened; makes you wonder if TimeZone has
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;anything to do with this at all!)
&lt;br&gt;&lt;br&gt;Windows 2003 time was set correctly in all four cases.
&lt;br&gt;&lt;br&gt;Summary:
&lt;br&gt;&amp;nbsp; - one server displays time correctly
&lt;br&gt;&amp;nbsp; - two servers APPEAR to be set correctly in Windows, but time displayed
&lt;br&gt;&amp;nbsp; &amp;nbsp; from now() is one hour greater than Windows time
&lt;br&gt;&amp;nbsp; - one server is set incorrectly (PostgreSQL TimeZone parameter was set to
&lt;br&gt;&amp;nbsp; &amp;nbsp; Dublin/Europe); but TimeZone did not appear to have any effect on the
&lt;br&gt;&amp;nbsp; &amp;nbsp; time being displayed, since now() is displaying time as one hour greater
&lt;br&gt;&amp;nbsp; &amp;nbsp; than Windows time, and Windows time appears to be set correctly
&lt;br&gt;&lt;br&gt;Being as one server is 'doing it right', there must be some difference in
&lt;br&gt;settings, but so far I have not been able to determine what is different.
&lt;br&gt;Windows appeared to be correct in all cases, but PostgreSQL is not.
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 4: Have you searched our list archives?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://archives.postgresql.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Server-Time-Setting-tp870540p870540.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-836721</id>
	<title>Re: [PATCHES] Implement support for TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL</title>
	<published>2005-09-11T20:27:23Z</published>
	<updated>2005-09-11T20:27:23Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Oliver Jowett &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=836721&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oliver@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; Tom Lane wrote:
&lt;br&gt;&amp;gt;&amp;gt; So the postmaster-log message may be the best we can do ...
&lt;br&gt;&amp;gt;&amp;gt; but I don't think we should drop the connection.
&lt;br&gt;&lt;br&gt;&amp;gt; Here's a patch to do that; it appears to work as intended on my Linux
&lt;br&gt;&amp;gt; system.
&lt;br&gt;&lt;br&gt;Applied along with some other marginal cleanups.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regards, tom lane
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 3: Have you checked our extensive FAQ?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.postgresql.org/docs/faq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/faq&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCHES--Implement-support-for-TCP_KEEPCNT%2C-TCP_KEEPIDLE%2C-TCP_KEEPINTVL-%28was-Re%3A--HACKERS--Feature-freeze-date-for-8.1%29-tp815906p836721.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-836483</id>
	<title>Re: [PATCHES] Implement support for TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL</title>
	<published>2005-09-11T18:59:46Z</published>
	<updated>2005-09-11T18:59:46Z</updated>
	<author>
		<name>Oliver Jowett</name>
	</author>
	<content type="html">Tom Lane wrote:
&lt;br&gt;&amp;gt; So the postmaster-log message may be the best we can do ...
&lt;br&gt;&amp;gt; but I don't think we should drop the connection.
&lt;br&gt;&lt;br&gt;Here's a patch to do that; it appears to work as intended on my Linux
&lt;br&gt;system.
&lt;br&gt;&lt;br&gt;-O
&lt;br&gt;&lt;br /&gt;Index: src/backend/libpq/pqcomm.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /projects/cvsroot/pgsql/src/backend/libpq/pqcomm.c,v
&lt;br&gt;retrieving revision 1.178
&lt;br&gt;diff -c -r1.178 pqcomm.c
&lt;br&gt;*** src/backend/libpq/pqcomm.c	30 Jul 2005 20:28:20 -0000	1.178
&lt;br&gt;--- src/backend/libpq/pqcomm.c	12 Sep 2005 00:58:15 -0000
&lt;br&gt;***************
&lt;br&gt;*** 595,612 ****
&lt;br&gt;&amp;nbsp; 			return STATUS_ERROR;
&lt;br&gt;&amp;nbsp; 		}
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;! 		/* Set default keepalive parameters. This should also catch
&lt;br&gt;! 		 * misconfigurations (non-zero values when socket options aren't
&lt;br&gt;! 		 * supported)
&lt;br&gt;&amp;nbsp; 		 */
&lt;br&gt;! 		if (pq_setkeepalivesidle(tcp_keepalives_idle, port) != STATUS_OK)
&lt;br&gt;! 			return STATUS_ERROR;
&lt;br&gt;! 
&lt;br&gt;! 		if (pq_setkeepalivesinterval(tcp_keepalives_interval, port) != STATUS_OK)
&lt;br&gt;! 			return STATUS_ERROR;
&lt;br&gt;! 
&lt;br&gt;! 		if (pq_setkeepalivescount(tcp_keepalives_count, port) != STATUS_OK)
&lt;br&gt;! 			return STATUS_ERROR;
&lt;br&gt;&amp;nbsp; 	}
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; 	return STATUS_OK;
&lt;br&gt;--- 595,607 ----
&lt;br&gt;&amp;nbsp; 			return STATUS_ERROR;
&lt;br&gt;&amp;nbsp; 		}
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;! 		/* Set default keepalive parameters. We ignore misconfigurations
&lt;br&gt;! 		 * that cause errors -- they will be logged, but won't kill the
&lt;br&gt;! 		 * connection.
&lt;br&gt;&amp;nbsp; 		 */
&lt;br&gt;! 		pq_setkeepalivesidle(tcp_keepalives_idle, port);
&lt;br&gt;! 		pq_setkeepalivesinterval(tcp_keepalives_interval, port);
&lt;br&gt;! 		pq_setkeepalivescount(tcp_keepalives_count, port);
&lt;br&gt;&amp;nbsp; 	}
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; 	return STATUS_OK;
&lt;br&gt;&lt;br /&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 4: Have you searched our list archives?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://archives.postgresql.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCHES--Implement-support-for-TCP_KEEPCNT%2C-TCP_KEEPIDLE%2C-TCP_KEEPINTVL-%28was-Re%3A--HACKERS--Feature-freeze-date-for-8.1%29-tp815906p836483.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-829612</id>
	<title>Re: [HACKERS] Build with Visual Studio &amp; MSVC</title>
	<published>2005-09-10T08:29:08Z</published>
	<updated>2005-09-10T08:29:08Z</updated>
	<author>
		<name>Dave Page</name>
	</author>
	<content type="html">&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &amp;quot;Jean-Marc EBER&amp;quot;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829612&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeanmarc.eber@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: 10/09/05 14:26:15
&lt;br&gt;To: &amp;quot;Dave Page&amp;quot;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829612&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dpage@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Cc: &amp;quot;Chuck McDevitt&amp;quot;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829612&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cmcdevitt@...&lt;/a&gt;&amp;gt;, &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829612&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;&amp;quot;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829612&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;&amp;gt;, &amp;quot;PostgreSQL-development&amp;quot;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829612&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Re: [pgsql-hackers-win32] [HACKERS] Build with Visual Studio &amp; MSVC
&lt;br&gt;&lt;br&gt;&amp;gt;. This would imply that the 
&lt;br&gt;&amp;gt; binary native win32 distribution of 
&lt;br&gt;&amp;gt; postgresql contains (or that a 
&lt;br&gt;&amp;gt; supplementary 
&lt;br&gt;&amp;gt; package exists) the libraries (and headers) &amp;gt; that are necessary. Having these 
&lt;br&gt;&amp;gt; libraries in mingw format would be nice, 
&lt;br&gt;&amp;gt; having them for VC++ would probably be 
&lt;br&gt;&amp;gt; very helpful to some of us.
&lt;br&gt;&lt;br&gt;Err, they (libpq and ecpglib) are included in both formats. Admittedley 8.0 missed some headers, but that is already fixed for 8.1. 
&lt;br&gt;&lt;br&gt;Regards, Dave
&lt;br&gt;&lt;br&gt;-----Unmodified Original Message-----
&lt;br&gt;Hi all,
&lt;br&gt;&lt;br&gt;A remark linked to the preceding discussion:
&lt;br&gt;&lt;br&gt;Even if I could find some interest in compiling postgresql with Microsoft’s C 
&lt;br&gt;compiler, I understand the technical and organizational difficulties implied by 
&lt;br&gt;such a feature. If I want to rebuild from sources postgresql, I have to go the 
&lt;br&gt;developers way, here use the mingw toolchain.
&lt;br&gt;&lt;br&gt;I think that writing _extensions_ for postgresql is another story.
&lt;br&gt;&lt;br&gt;Even before version 8.0, the binary win32/cygwin distribution contained 
&lt;br&gt;precompiled libraries for client side programming with VisualC. This allows you 
&lt;br&gt;to write postgresql client code in VC _and_ without rebuilding postgresql yourself.
&lt;br&gt;&lt;br&gt;Something similar (I think it has been discussed earlier but don’t remember the 
&lt;br&gt;decisions) should exist for writing UDFs (stored procedures, the main reason for 
&lt;br&gt;our use of postgresql compared to commercial databases where this feature is 
&lt;br&gt;generally badly documented, to say the least). It would be nice if this was 
&lt;br&gt;possible _without_ rebuilding postgresql from sources. This would imply that the 
&lt;br&gt;binary native win32 distribution of postgresql contains (or that a supplementary 
&lt;br&gt;package exists) the libraries (and headers) that are necessary. Having these 
&lt;br&gt;libraries in mingw format would be nice, having them for VC++ would probably be 
&lt;br&gt;very helpful to some of us.
&lt;br&gt;&lt;br&gt;Jean-Marc
&lt;br&gt;&lt;br&gt;&lt;br&gt;Dave Page wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *From:* &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829612&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-owner@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829612&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-owner@...&lt;/a&gt;] *On Behalf Of *Chuck
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; McDevitt
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *Sent:* 09 September 2005 19:38
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *To:* &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829612&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *Cc:* PostgreSQL-development
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *Subject:* [HACKERS] Build with Visual Studio &amp; MSVC
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Just for fun, I went through PostgreSQL 8.1 and did a complete build
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; using Microsoft’s C and the latest Visual Studio.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; With a few minor tweaks, everything compiled with no errors.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; My assumption is that because PostgreSQL is a UNIX/Linux-centric
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; project (and gcc/gdb centric), this really isn’t of much interest to
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; anyone.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; So other than this e-mail, I don’t plan to do anything with this
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; except for my own amusement.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; If I’m wrong, and there is some real interest in supporting MSVC,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; let me know, and I’ll put some work into cleaning it up and making
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; patches out of it, etc. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Chuck,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We discussed this again on list only the other day in fact! Basically 
&lt;br&gt;&amp;gt; we're not particulalry interested in supporting VS prject files in place 
&lt;br&gt;&amp;gt; of gmake/autoconf, purely because they will undoubtedly cause 
&lt;br&gt;&amp;gt; maintenance headaches as the majority of our developers don't have 
&lt;br&gt;&amp;gt; Windows boxes, let alone a copy of Visual Studio.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, if you need something to keep yourself amused (unless I can 
&lt;br&gt;&amp;gt; persuade you to come help out with psqlODBC :-) ), we would be 
&lt;br&gt;&amp;gt; interested in patches that allow us to use Microsoft's compiler as an 
&lt;br&gt;&amp;gt; alternative to gcc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's interesting to know it built fairly easily though...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards, Dave.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 3: Have you checked our extensive FAQ?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.postgresql.org/docs/faq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/faq&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--HACKERS--Build-with-Visual-Studio---MSVC-tp825287p829612.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-829445</id>
	<title>Re: [HACKERS] Build with Visual Studio &amp; MSVC</title>
	<published>2005-09-10T07:23:38Z</published>
	<updated>2005-09-10T07:23:38Z</updated>
	<author>
		<name>Jean-Marc EBER</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;A remark linked to the preceding discussion:
&lt;br&gt;&lt;br&gt;Even if I could find some interest in compiling postgresql with Microsoft’s C 
&lt;br&gt;compiler, I understand the technical and organizational difficulties implied by 
&lt;br&gt;such a feature. If I want to rebuild from sources postgresql, I have to go the 
&lt;br&gt;developers way, here use the mingw toolchain.
&lt;br&gt;&lt;br&gt;I think that writing _extensions_ for postgresql is another story.
&lt;br&gt;&lt;br&gt;Even before version 8.0, the binary win32/cygwin distribution contained 
&lt;br&gt;precompiled libraries for client side programming with VisualC. This allows you 
&lt;br&gt;to write postgresql client code in VC _and_ without rebuilding postgresql yourself.
&lt;br&gt;&lt;br&gt;Something similar (I think it has been discussed earlier but don’t remember the 
&lt;br&gt;decisions) should exist for writing UDFs (stored procedures, the main reason for 
&lt;br&gt;our use of postgresql compared to commercial databases where this feature is 
&lt;br&gt;generally badly documented, to say the least). It would be nice if this was 
&lt;br&gt;possible _without_ rebuilding postgresql from sources. This would imply that the 
&lt;br&gt;binary native win32 distribution of postgresql contains (or that a supplementary 
&lt;br&gt;package exists) the libraries (and headers) that are necessary. Having these 
&lt;br&gt;libraries in mingw format would be nice, having them for VC++ would probably be 
&lt;br&gt;very helpful to some of us.
&lt;br&gt;&lt;br&gt;Jean-Marc
&lt;br&gt;&lt;br&gt;&lt;br&gt;Dave Page wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *From:* &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829445&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-owner@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829445&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-owner@...&lt;/a&gt;] *On Behalf Of *Chuck
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; McDevitt
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *Sent:* 09 September 2005 19:38
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *To:* &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=829445&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *Cc:* PostgreSQL-development
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *Subject:* [HACKERS] Build with Visual Studio &amp; MSVC
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Just for fun, I went through PostgreSQL 8.1 and did a complete build
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; using Microsoft’s C and the latest Visual Studio.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; With a few minor tweaks, everything compiled with no errors.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; My assumption is that because PostgreSQL is a UNIX/Linux-centric
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; project (and gcc/gdb centric), this really isn’t of much interest to
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; anyone.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; So other than this e-mail, I don’t plan to do anything with this
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; except for my own amusement.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; If I’m wrong, and there is some real interest in supporting MSVC,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; let me know, and I’ll put some work into cleaning it up and making
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; patches out of it, etc. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi Chuck,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We discussed this again on list only the other day in fact! Basically 
&lt;br&gt;&amp;gt; we're not particulalry interested in supporting VS prject files in place 
&lt;br&gt;&amp;gt; of gmake/autoconf, purely because they will undoubtedly cause 
&lt;br&gt;&amp;gt; maintenance headaches as the majority of our developers don't have 
&lt;br&gt;&amp;gt; Windows boxes, let alone a copy of Visual Studio.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, if you need something to keep yourself amused (unless I can 
&lt;br&gt;&amp;gt; persuade you to come help out with psqlODBC :-) ), we would be 
&lt;br&gt;&amp;gt; interested in patches that allow us to use Microsoft's compiler as an 
&lt;br&gt;&amp;gt; alternative to gcc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's interesting to know it built fairly easily though...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards, Dave.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 3: Have you checked our extensive FAQ?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.postgresql.org/docs/faq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/faq&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--HACKERS--Build-with-Visual-Studio---MSVC-tp825287p829445.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-826757</id>
	<title>Re: Build with Visual Studio &amp; MSVC</title>
	<published>2005-09-09T16:05:19Z</published>
	<updated>2005-09-09T16:05:19Z</updated>
	<author>
		<name>xfinger-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Sure there is interest in building with VS, at least i would. VS has great
&lt;br&gt;debugging suport, i
&lt;br&gt;mean the IDE. Would be nice to build Postgresql and psqlODBC under one VS
&lt;br&gt;project.
&lt;br&gt;I wonder if you could share your VS project and patch to do a complete
&lt;br&gt;building?
&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;&lt;br&gt;Alexander
&lt;br&gt;&lt;br&gt;-----Mensagem Original-----
&lt;br&gt;De: Chuck McDevitt
&lt;br&gt;Para: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=826757&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;
&lt;br&gt;Cc: PostgreSQL-development
&lt;br&gt;Enviada em: sexta-feira, 9 de setembro de 2005 15:37
&lt;br&gt;Assunto: [pgsql-hackers-win32] Build with Visual Studio &amp; MSVC
&lt;br&gt;&lt;br&gt;&lt;br&gt;Just for fun, I went through PostgreSQL 8.1 and did a complete build using
&lt;br&gt;Microsoft's C and the latest Visual Studio.
&lt;br&gt;With a few minor tweaks, everything compiled with no errors.
&lt;br&gt;&lt;br&gt;My assumption is that because PostgreSQL is a UNIX/Linux-centric project
&lt;br&gt;(and gcc/gdb centric), this really isn't of much interest to anyone.
&lt;br&gt;So other than this e-mail, I don't plan to do anything with this except for
&lt;br&gt;my own amusement.
&lt;br&gt;&lt;br&gt;If I'm wrong, and there is some real interest in supporting MSVC, let me
&lt;br&gt;know, and I'll put some work into cleaning it up and making patches out of
&lt;br&gt;it, etc.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 5: don't forget to increase your free space map settings
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Build-with-Visual-Studio---MSVC-tp825134p826757.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-825481</id>
	<title>Re: [HACKERS] Build with Visual Studio &amp; MSVC</title>
	<published>2005-09-09T13:18:09Z</published>
	<updated>2005-09-09T13:18:09Z</updated>
	<author>
		<name>Andrew Dunstan</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Dave Page wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Just for fun, I went through PostgreSQL 8.1 and did a complete
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; build using Microsoft’s C and the latest Visual Studio.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; With a few minor tweaks, everything compiled with no errors.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; My assumption is that because PostgreSQL is a UNIX/Linux-centric
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; project (and gcc/gdb centric), this really isn’t of much interest
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; to anyone.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; So other than this e-mail, I don’t plan to do anything with this
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; except for my own amusement.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; If I’m wrong, and there is some real interest in supporting MSVC,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; let me know, and I’ll put some work into cleaning it up and making
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; patches out of it, etc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Chuck,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We discussed this again on list only the other day in fact! Basically 
&lt;br&gt;&amp;gt; we're not particulalry interested in supporting VS prject files in 
&lt;br&gt;&amp;gt; place of gmake/autoconf, purely because they will undoubtedly cause 
&lt;br&gt;&amp;gt; maintenance headaches as the majority of our developers don't have 
&lt;br&gt;&amp;gt; Windows boxes, let alone a copy of Visual Studio.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, if you need something to keep yourself amused (unless I can 
&lt;br&gt;&amp;gt; persuade you to come help out with psqlODBC :-) ), we would be 
&lt;br&gt;&amp;gt; interested in patches that allow us to use Microsoft's compiler as an 
&lt;br&gt;&amp;gt; alternative to gcc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It's interesting to know it built fairly easily though...
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;There is also a pgfoundry project for maintaining Visual Studio project 
&lt;br&gt;files. see &lt;a href=&quot;http://pgfoundry.org/projects/vcproject/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pgfoundry.org/projects/vcproject/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;cheers
&lt;br&gt;&lt;br&gt;andrew
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 3: Have you checked our extensive FAQ?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.postgresql.org/docs/faq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/faq&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--HACKERS--Build-with-Visual-Studio---MSVC-tp825287p825481.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-825389</id>
	<title>Re: [HACKERS] Build with Visual Studio &amp; MSVC</title>
	<published>2005-09-09T13:08:28Z</published>
	<updated>2005-09-09T13:08:28Z</updated>
	<author>
		<name>Joshua D. Drake</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; However, if you need something to keep yourself amused (unless I can 
&lt;br&gt;&amp;gt; persuade you to come help out with psqlODBC :-) ), we would be 
&lt;br&gt;&amp;gt; interested in patches that allow us to use Microsoft's compiler as an 
&lt;br&gt;&amp;gt; alternative to gcc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's interesting to know it built fairly easily though...
&lt;br&gt;&lt;br&gt;What would be of interest to me, would be to know if there is an actual
&lt;br&gt;gain to compiling with the Microsoft compiler. I understand the 
&lt;br&gt;maintenance issues but if the Microsoft compiler gives us 25% better
&lt;br&gt;performance on Win32 then Mingw...
&lt;br&gt;&lt;br&gt;Sincerely,
&lt;br&gt;&lt;br&gt;Joshua D. Drake
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards, Dave.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240
&lt;br&gt;PostgreSQL Replication, Consulting, Custom Programming, 24x7 support
&lt;br&gt;Managed Services, Shared and Dedicated Hosting
&lt;br&gt;Co-Authors: plPHP, plPerlNG - &lt;a href=&quot;http://www.commandprompt.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.commandprompt.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 4: Have you searched our list archives?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://archives.postgresql.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--HACKERS--Build-with-Visual-Studio---MSVC-tp825287p825389.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-825287</id>
	<title>Re: [HACKERS] Build with Visual Studio &amp; MSVC</title>
	<published>2005-09-09T12:58:01Z</published>
	<updated>2005-09-09T12:58:01Z</updated>
	<author>
		<name>Dave Page</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML xmlns=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot;&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.2627&quot; name=GENERATOR&gt;

&lt;/HEAD&gt;
&lt;BODY lang=EN-US vLink=purple link=blue&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style=&quot;PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left&gt;
  &lt;HR tabIndex=-1&gt;
  &lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=825287&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-owner@...&lt;/a&gt; 
  [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=825287&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-owner@...&lt;/a&gt;] &lt;B&gt;On Behalf Of &lt;/B&gt;Chuck 
  McDevitt&lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 09 September 2005 19:38&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; 
  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=825287&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pgsql-hackers-win32@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Cc:&lt;/B&gt; 
  PostgreSQL-development&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; [HACKERS] Build with Visual Studio 
  &amp;amp; MSVC&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;/DIV&gt;
  &lt;DIV class=Section1&gt;
  &lt;P class=MsoNormal&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;Just for fun, I went through 
  PostgreSQL 8.1 and did a complete build using Microsoft&amp;#8217;s C and the latest 
  Visual Studio.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;With a few minor tweaks, 
  everything compiled with no errors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;My assumption is that because 
  PostgreSQL is a UNIX/Linux-centric project (and gcc/gdb centric), this really 
  isn&amp;#8217;t of much interest to anyone.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;So other than this e-mail, I don&amp;#8217;t 
  plan to do anything with this except for my own 
  amusement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;If I&amp;#8217;m 
  wrong, and there is some real interest in supporting MSVC, let me know, and 
  I&amp;#8217;ll put some work into cleaning it up and making patches out of it, etc.&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
  &lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;Hi Chuck,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;We discussed this again on list only the other&amp;nbsp;day 
in fact! Basically we're not particulalry interested in supporting VS prject 
files in place of gmake/autoconf, purely because they will undoubtedly cause 
maintenance headaches as the majority of our developers don't have Windows 
boxes, let alone a copy of Visual Studio. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;However, if you need something to keep yourself amused 
(unless I can persuade you to come help out with psqlODBC :-) ), we would be 
interested in patches that allow us to use Microsoft's compiler&amp;nbsp;as an 
alternative to gcc.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;It's interesting to know it built fairly easily 
though...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;Regards, Dave.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal dir=ltr&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;FONT color=#0000ff&gt;&lt;SPAN class=991525218-09092005&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--HACKERS--Build-with-Visual-Studio---MSVC-tp825287p825287.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-825134</id>
	<title>Build with Visual Studio &amp; MSVC</title>
	<published>2005-09-09T12:37:37Z</published>
	<updated>2005-09-09T12:37:37Z</updated>
	<author>
		<name>Chuck McDevitt</name>
	</author>
	<content type="html">&lt;html xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Just for fun, I went through PostgreSQL 8.1 and did a
complete build using Microsoft&amp;#8217;s C and the latest Visual Studio.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;With a few minor tweaks, everything compiled with no errors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;My assumption is that because PostgreSQL is a
UNIX/Linux-centric project (and gcc/gdb centric), this really isn&amp;#8217;t of
much interest to anyone.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;So other than this e-mail, I don&amp;#8217;t plan to do anything
with this except for my own amusement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;If I&amp;#8217;m wrong, and there is some real interest in supporting
MSVC, let me know, and I&amp;#8217;ll put some work into cleaning it up and making
patches out of it, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Build-with-Visual-Studio---MSVC-tp825134p825134.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-821560</id>
	<title>Re: [PATCHES] Implement support for TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL</title>
	<published>2005-09-09T06:14:36Z</published>
	<updated>2005-09-09T06:14:36Z</updated>
	<author>
		<name>Merlin Moncure</name>
	</author>
	<content type="html">Tom Lane wrote:
&lt;br&gt;&amp;gt; &amp;gt; If the connection gets accepted, I'd expect *something* in the
&lt;br&gt;&amp;gt; &amp;gt; postmaster logs -- can you check?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I suspect Merlin's complaint has to do with the fact that the *user*
&lt;br&gt;&amp;gt; doesn't see any error message. &amp;nbsp;The way you've coded this, setsockopt
&lt;br&gt;&amp;gt; failure during startup is treated as a communications failure and so
&lt;br&gt;&amp;gt; there's no attempt to report the problem to the client.
&lt;br&gt;&lt;br&gt;Correct. &amp;nbsp;In fact, when I posted I did completely miss the log message
&lt;br&gt;due to initdb resetting log_destination. &amp;nbsp;Confirmed:
&lt;br&gt;LOG: &amp;nbsp;setsockopt(TCP_KEEPIDLE) not supported
&lt;br&gt;in server log.
&lt;br&gt;&lt;br&gt;Merlin
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 3: Have you checked our extensive FAQ?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.postgresql.org/docs/faq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/faq&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCHES--Implement-support-for-TCP_KEEPCNT%2C-TCP_KEEPIDLE%2C-TCP_KEEPINTVL-%28was-Re%3A--HACKERS--Feature-freeze-date-for-8.1%29-tp815906p821560.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-818101</id>
	<title>Re: [PATCHES] Implement support for TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL</title>
	<published>2005-09-08T18:11:03Z</published>
	<updated>2005-09-08T18:11:03Z</updated>
	<author>
		<name>Oliver Jowett</name>
	</author>
	<content type="html">Tom Lane wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I'm not sure if we can issue a notice that will be seen on the client
&lt;br&gt;&amp;gt; side at this point in the startup cycle. &amp;nbsp;I seem to recall the protocol
&lt;br&gt;&amp;gt; document advising against sending NOTICEs during the authentication
&lt;br&gt;&amp;gt; cycle.
&lt;br&gt;&lt;br&gt;As currently written the setsockopt() calls are done very early, well
&lt;br&gt;before even ProcessStartupPacket() has run -- so we can't really send
&lt;br&gt;anything at all to the client because we don't even know which protocol
&lt;br&gt;to use.
&lt;br&gt;&lt;br&gt;Delaying the setsockopt() introduces the danger that you could lose the
&lt;br&gt;network at just the wrong time and have a backend sitting around for an
&lt;br&gt;extended period waiting on a startup packet (but not holding locks,
&lt;br&gt;admittedly).
&lt;br&gt;&lt;br&gt;-O
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 6: explain analyze is your friend
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCHES--Implement-support-for-TCP_KEEPCNT%2C-TCP_KEEPIDLE%2C-TCP_KEEPINTVL-%28was-Re%3A--HACKERS--Feature-freeze-date-for-8.1%29-tp815906p818101.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-818053</id>
	<title>Re: [PATCHES] Implement support for TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL (was Re: [HACKERS] Feature freeze date for 8.1)</title>
	<published>2005-09-08T18:02:23Z</published>
	<updated>2005-09-08T18:02:23Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Oliver Jowett &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=818053&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oliver@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; We could just log (already done inside pq_*, IIRC) and continue, instead
&lt;br&gt;&amp;gt; of erroring out. It's just the way it is because I personally prefer
&lt;br&gt;&amp;gt; misconfigurations to break loudly, so you have to fix them ;-)
&lt;br&gt;&lt;br&gt;Well, dropping the connection with no message (except in the postmaster
&lt;br&gt;log, which is equivalent to /dev/null for way too many people) isn't
&lt;br&gt;my idea of how to complain &amp;quot;loudly&amp;quot;. &amp;nbsp;It just makes the software look
&lt;br&gt;broken.
&lt;br&gt;&lt;br&gt;I'm not sure if we can issue a notice that will be seen on the client
&lt;br&gt;side at this point in the startup cycle. &amp;nbsp;I seem to recall the protocol
&lt;br&gt;document advising against sending NOTICEs during the authentication
&lt;br&gt;cycle. &amp;nbsp;So the postmaster-log message may be the best we can do ...
&lt;br&gt;but I don't think we should drop the connection.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regards, tom lane
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 5: don't forget to increase your free space map settings
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCHES--Implement-support-for-TCP_KEEPCNT%2C-TCP_KEEPIDLE%2C-TCP_KEEPINTVL-%28was-Re%3A--HACKERS--Feature-freeze-date-for-8.1%29-tp815906p818053.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-817994</id>
	<title>Re: [PATCHES] Implement support for TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL</title>
	<published>2005-09-08T17:49:54Z</published>
	<updated>2005-09-08T17:49:54Z</updated>
	<author>
		<name>Oliver Jowett</name>
	</author>
	<content type="html">Tom Lane wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Oliver Jowett &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=817994&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oliver@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;The assumption I'm making is that if the TCP_* values are present at
&lt;br&gt;&amp;gt;&amp;gt;compile time, then you can make a setsockopt() call and get a sane error
&lt;br&gt;&amp;gt;&amp;gt;code back if there's no support -- rather than a segfault, or having the
&lt;br&gt;&amp;gt;&amp;gt;OS spontaneously do weird things to the connection, or anything like
&lt;br&gt;&amp;gt;&amp;gt;that. Is that a reasonable thing to assume?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well, on a sane OS it's reasonable. &amp;nbsp;I dunno about Windows ;-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; One question to ask is whether we should treat the setsockopt failure
&lt;br&gt;&amp;gt; as fatal or not. &amp;nbsp;It seems to me that aborting the connection could
&lt;br&gt;&amp;gt; reasonably be called an overreaction to a bad parameter setting;
&lt;br&gt;&amp;gt; couldn't we just set the GUC variable to zero and keep going?
&lt;/div&gt;&lt;br&gt;There's no real reason why not; currently the code looks like this:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp; /* Set default keepalive parameters. This should also catch
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;* misconfigurations (non-zero values when socket options aren't
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;* supported)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;gt; &amp;nbsp; if (pq_setkeepalivesidle(tcp_keepalives_idle, port) != STATUS_OK)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; return STATUS_ERROR;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; if (pq_setkeepalivesinterval(tcp_keepalives_interval, port) != STATUS_OK)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; return STATUS_ERROR;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; if (pq_setkeepalivescount(tcp_keepalives_count, port) != STATUS_OK)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; return STATUS_ERROR;
&lt;/div&gt;&lt;br&gt;We could just log (already done inside pq_*, IIRC) and continue, instead
&lt;br&gt;of erroring out. It's just the way it is because I personally prefer
&lt;br&gt;misconfigurations to break loudly, so you have to fix them ;-)
&lt;br&gt;&lt;br&gt;-O
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 4: Have you searched our list archives?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://archives.postgresql.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://archives.postgresql.org&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCHES--Implement-support-for-TCP_KEEPCNT%2C-TCP_KEEPIDLE%2C-TCP_KEEPINTVL-%28was-Re%3A--HACKERS--Feature-freeze-date-for-8.1%29-tp815906p817994.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-817986</id>
	<title>Re: [PATCHES] Implement support for TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL</title>
	<published>2005-09-08T17:48:00Z</published>
	<updated>2005-09-08T17:48:00Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Oliver Jowett &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=817986&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oliver@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; Merlin Moncure wrote:
&lt;br&gt;&amp;gt;&amp;gt; More
&lt;br&gt;&amp;gt;&amp;gt; significantly, if you change a tcp parameter from the default, the
&lt;br&gt;&amp;gt;&amp;gt; server rejects connections without a relevant error message :(.
&lt;br&gt;&lt;br&gt;&amp;gt; Could you clarify what you mean by &amp;quot;rejects&amp;quot;? Does it accept them and
&lt;br&gt;&amp;gt; then close the connection, or does it fail to even accept the TCP
&lt;br&gt;&amp;gt; connection?
&lt;br&gt;&lt;br&gt;&amp;gt; If the connection gets accepted, I'd expect *something* in the
&lt;br&gt;&amp;gt; postmaster logs -- can you check?
&lt;br&gt;&lt;br&gt;I suspect Merlin's complaint has to do with the fact that the *user*
&lt;br&gt;doesn't see any error message. &amp;nbsp;The way you've coded this, setsockopt
&lt;br&gt;failure during startup is treated as a communications failure and so
&lt;br&gt;there's no attempt to report the problem to the client.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regards, tom lane
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 1: if posting/reading through Usenet, please send an appropriate
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;subscribe-nomail command to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=817986&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt; so that your
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;message can get through to the mailing list cleanly
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCHES--Implement-support-for-TCP_KEEPCNT%2C-TCP_KEEPIDLE%2C-TCP_KEEPINTVL-%28was-Re%3A--HACKERS--Feature-freeze-date-for-8.1%29-tp815906p817986.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-817915</id>
	<title>Re: [PATCHES] Implement support for TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL (was Re: [HACKERS] Feature freeze date for 8.1)</title>
	<published>2005-09-08T17:40:15Z</published>
	<updated>2005-09-08T17:40:15Z</updated>
	<author>
		<name>Tom Lane-2</name>
	</author>
	<content type="html">Oliver Jowett &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=817915&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oliver@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; The assumption I'm making is that if the TCP_* values are present at
&lt;br&gt;&amp;gt; compile time, then you can make a setsockopt() call and get a sane error
&lt;br&gt;&amp;gt; code back if there's no support -- rather than a segfault, or having the
&lt;br&gt;&amp;gt; OS spontaneously do weird things to the connection, or anything like
&lt;br&gt;&amp;gt; that. Is that a reasonable thing to assume?
&lt;br&gt;&lt;br&gt;Well, on a sane OS it's reasonable. &amp;nbsp;I dunno about Windows ;-)
&lt;br&gt;&lt;br&gt;One question to ask is whether we should treat the setsockopt failure
&lt;br&gt;as fatal or not. &amp;nbsp;It seems to me that aborting the connection could
&lt;br&gt;reasonably be called an overreaction to a bad parameter setting;
&lt;br&gt;couldn't we just set the GUC variable to zero and keep going?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regards, tom lane
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 3: Have you checked our extensive FAQ?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.postgresql.org/docs/faq&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.postgresql.org/docs/faq&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCHES--Implement-support-for-TCP_KEEPCNT%2C-TCP_KEEPIDLE%2C-TCP_KEEPINTVL-%28was-Re%3A--HACKERS--Feature-freeze-date-for-8.1%29-tp815906p817915.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-817877</id>
	<title>Re: [PATCHES] Implement support for TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL</title>
	<published>2005-09-08T17:33:02Z</published>
	<updated>2005-09-08T17:33:02Z</updated>
	<author>
		<name>Oliver Jowett</name>
	</author>
	<content type="html">Tom Lane wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Oliver Jowett &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=817877&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oliver@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;Merlin Moncure wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;Even better would be a stronger test to make sure o/s supports this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;feature.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;Well, the code assumes that if the TCP_* constants are present then they
&lt;br&gt;&amp;gt;&amp;gt;can be used. It seems a bit stupid if Windows defines them but doesn't
&lt;br&gt;&amp;gt;&amp;gt;support them at all.
&lt;/div&gt;&lt;br&gt;&amp;gt; In short, if you were assuming that then you'd better fix the code.
&lt;br&gt;&lt;br&gt;Sorry, to clarify: If the TCP_* constants are provided, *and* you
&lt;br&gt;configure the backend to try to use non-default values, then the code
&lt;br&gt;will try the appropriate setsockopt(). If that fails, then the
&lt;br&gt;connection gets dropped.
&lt;br&gt;&lt;br&gt;If you don't change the defaults, it doesn't use setsockopt() at all.
&lt;br&gt;&lt;br&gt;The assumption I'm making is that if the TCP_* values are present at
&lt;br&gt;compile time, then you can make a setsockopt() call and get a sane error
&lt;br&gt;code back if there's no support -- rather than a segfault, or having the
&lt;br&gt;OS spontaneously do weird things to the connection, or anything like
&lt;br&gt;that. Is that a reasonable thing to assume?
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;&lt;br&gt;There doesn't seem any clean way to test if a particular set of values
&lt;br&gt;specified at runtime is going to work or not -- the only way is to try.
&lt;br&gt;I suppose we could set up a dummy TCP connection on postmaster start and
&lt;br&gt;try that, but..
&lt;br&gt;&lt;br&gt;We could potentially do better in the &amp;quot;no TCP_* support&amp;quot; case, detecting
&lt;br&gt;it on postmaster startup (move the check for NULL port down into the
&lt;br&gt;pqcomm code, and complain about non-zero values even in that case if
&lt;br&gt;there's no support); but that doesn't help the other cases.
&lt;br&gt;&lt;br&gt;If I specify out-of-range values on my Linux box, I get this:
&lt;br&gt;&lt;br&gt;&amp;gt; oliver@extrashiny ~ $ pg/8.1-beta1/bin/psql -h localhost template1
&lt;br&gt;&amp;gt; psql: server closed the connection unexpectedly
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This probably means the server terminated abnormally
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; before or while processing the request.
&lt;br&gt;&lt;br&gt;and in the logs:
&lt;br&gt;&lt;br&gt;&amp;gt; LOG: &amp;nbsp;setsockopt(TCP_KEEPIDLE) failed: Invalid argument
&lt;br&gt;&lt;br&gt;I'd expect to see something similar in the &amp;quot;TCP_* present but no real
&lt;br&gt;support&amp;quot; case.
&lt;br&gt;&lt;br&gt;-O
&lt;br&gt;&lt;br&gt;---------------------------(end of broadcast)---------------------------
&lt;br&gt;TIP 1: if posting/reading through Usenet, please send an appropriate
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;subscribe-nomail command to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=817877&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;majordomo@...&lt;/a&gt; so that your
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;message can get through to the mailing list cleanly
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCHES--Implement-support-for-TCP_KEEPCNT%2C-TCP_KEEPIDLE%2C-TCP_KEEPINTVL-%28was-Re%3A--HACKERS--Feature-freeze-date-for-8.1%29-tp815906p817877.html" />
</entry>

</feed>
