Win32 psql fix

Поиск
Список
Период
Сортировка
Искать

Win32 psql fix

От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
Вложения:
The attached patch fixes psql's win32 frontend-only build, by using
pg_strcasecmp in variables.c, and #ifdef'ing out PostmasterPid in
miscadmin.h.

Please apply.

Regards Dave.

Re: Win32 psql fix

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:

Patch applied.  Thanks.

---------------------------------------------------------------------------


Dave Page wrote:
> The attached patch fixes psql's win32 frontend-only build, by using
> pg_strcasecmp in variables.c, and #ifdef'ing out PostmasterPid in
> miscadmin.h.
> 
> Please apply.
> 
> Regards Dave.

Content-Description: psql.diff

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Re: Win32 psql fix

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Dave Page"  writes:
> The attached patch fixes psql's win32 frontend-only build, by using
> pg_strcasecmp in variables.c, and #ifdef'ing out PostmasterPid in
> miscadmin.h.

What in the world is client-side code doing including miscadmin.h
in the first place?

			regards, tom lane

Re: Win32 psql fix

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Tom Lane wrote:
> "Dave Page"  writes:
> > The attached patch fixes psql's win32 frontend-only build, by using
> > pg_strcasecmp in variables.c, and #ifdef'ing out PostmasterPid in
> > miscadmin.h.
> 
> What in the world is client-side code doing including miscadmin.h
> in the first place?

Ah, it is getting included from the port files.  Let me see if I can fix
that with FRONTEND tests.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Re: Win32 psql fix

От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
 

> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
> Sent: 18 October 2004 18:37
> To: Dave Page
> Cc: PostgreSQL-patches
> Subject: Re: [PATCHES] Win32 psql fix 
> 
> "Dave Page"  writes:
> > The attached patch fixes psql's win32 frontend-only build, by using 
> > pg_strcasecmp in variables.c, and #ifdef'ing out PostmasterPid in 
> > miscadmin.h.
> 
> What in the world is client-side code doing including 
> miscadmin.h in the first place?

It's included by port/exec.c which contains functions like find_my_exec.

Regards, Dave
FAQ