Re: [DOCS] Missing Win32 archive_command example

2010-09-11 Thread Robert Haas
On Wed, Aug 18, 2010 at 3:25 PM, Bruce Momjian  wrote:
> I noticed that there is no Win32 example for archive_command in our 9.0
> docs in the PITR setup docs:
>
>        
> http://www.postgresql.org/docs/9.0/static/continuous-archiving.html#BACKUP-ARCHIVING-WAL
>
> and no examples at all in the archive_command config section.  We only
> show Win32 recovery syntax examples for recovery.conf:
>
>        
> http://www.postgresql.org/docs/9.0/static/archive-recovery-settings.html
>
> A Win32 example did exist in our 8.4 docs for the archive_command definition:
>
>        
> http://www.postgresql.org/docs/8.4/static/runtime-config-wal.html#RUNTIME-CONFIG-WAL-ARCHIVING
>
> Seems there should be a Windows example right next to the Unix
> archive_command example we have now.

I think that you are right.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company

-- 
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs


Re: [DOCS] Compiling and Linking Dynamically-Loaded Functions on Windows

2010-09-11 Thread Robert Haas
On Wed, Aug 25, 2010 at 4:04 PM, Mariano Reingart  wrote:
> There is no Windows (MSVC or MinGW) section to compile shared libraries (DLL):
> http://www.postgresql.org/docs/9.0/static/xfunc-c.html#DFUNC
>
> This is intentional, as it may be incompatible/hard?
> Ie. can mingw dll be used with a msvc build?
>
> This is a working example with mingw:
> C:\mingw\bin\gcc.exe -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
> -fwrapv -I. -I. -I../src/include -I.../src/include/port/win32
> -DEXEC_BACKEND "-I.../src/include/port/win32" -c -o foo.o foo.c
> C:\mingw\bin\gcc.exe -shared -o foo.dll foo.o
>
> -fPIC seems not needed for this platform, but should -mms-bitfields
> flag be used?
>
> PGXS cannot be used directly as it is not included with the one click
> installer (pg_config --pgxs returns an invalid path, no makefile
> found).
>
> Do you think this could be included in the docs?
> (recently we had a discussion about this in the spanish mailing list,
> and seems to be unclear for most of us).

If we can figure out what the right thing to do is, +1 from me for
adding it to the docs.  But the discussion of what the right thing to
do is should probably happen on pgsql-hackers, rather than here.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company

-- 
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs