Win32 psql fix

Started by Dave Pagealmost 22 years ago5 messagespatches
Jump to latest
#1Dave Page
dpage@pgadmin.org

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.

Attachments:

psql.diffapplication/octet-stream; name=psql.diffDownload+4-2
#2Bruce Momjian
bruce@momjian.us
In reply to: Dave Page (#1)
Re: Win32 psql fix

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
#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Dave Page (#1)
Re: Win32 psql fix

"Dave Page" <dpage@vale-housing.co.uk> 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

#4Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#3)
Re: Win32 psql fix

Tom Lane wrote:

"Dave Page" <dpage@vale-housing.co.uk> 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
#5Dave Page
dpage@pgadmin.org
In reply to: Bruce Momjian (#4)
Re: Win32 psql fix

-----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" <dpage@vale-housing.co.uk> 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