Lists: | pgsql-patches |
---|
From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org> |
Subject: | make installcheck on non-default ports |
Date: | 2003-11-26 04:17:56 |
Message-ID: | 3FC42974.7000801@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
I was trying to set up my dev box for multiple simultaneous Postgres
installs (7.3 stable, 7.4 stable, cvs head) and discovered that
`make installcheck` did not honor the default port assigned at configure
time. I view this as a bug.
The attached resolves the issue for all three versions.
Any objections to me applying this to cvs head? What about 7.3 and 7.4
stable branches?
Thanks,
Joe
Attachment | Content-Type | Size |
---|---|---|
regress-port-fix.patch | text/plain | 1.7 KB |
From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Joe Conway <mail(at)joeconway(dot)com> |
Cc: | "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: make installcheck on non-default ports |
Date: | 2003-11-26 04:43:58 |
Message-ID: | 3FC42F8E.4010303@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Joe Conway wrote:
> I was trying to set up my dev box for multiple simultaneous Postgres
> installs (7.3 stable, 7.4 stable, cvs head) and discovered that
> `make installcheck` did not honor the default port assigned at configure
> time. I view this as a bug.
>
> The attached resolves the issue for all three versions.
>
> Any objections to me applying this to cvs head? What about 7.3 and 7.4
> stable branches?
BTW, a similar change is needed in contrib/contrib-global.mk so that
`make installcheck` will work for contrib. New patch attached.
Joe
Attachment | Content-Type | Size |
---|---|---|
regress-port-fix.patch | text/plain | 2.5 KB |
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Joe Conway <mail(at)joeconway(dot)com> |
Cc: | "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: make installcheck on non-default ports |
Date: | 2003-11-26 05:50:19 |
Message-ID: | 11388.1069825819@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Joe Conway <mail(at)joeconway(dot)com> writes:
> I was trying to set up my dev box for multiple simultaneous Postgres
> installs (7.3 stable, 7.4 stable, cvs head) and discovered that
> `make installcheck` did not honor the default port assigned at configure
> time. I view this as a bug.
I think there is something wrong with your setup procedures, because
I've never needed such. (I've corresponded with Joe off-list about
this --- maybe we can produce a FAQ about the right way to do it once
the dust settles.)
> Any objections to me applying this to cvs head?
AFAICS this would defeat the documented behavior of being able to set
PGHOST/PGPORT in the environment to control which postmaster "make
installcheck" will speak to. So, yeah, I think it's a bad idea.
regards, tom lane
From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: make installcheck on non-default ports |
Date: | 2003-11-26 05:52:44 |
Message-ID: | 3FC43FAC.3000903@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Tom Lane wrote:
> I think there is something wrong with your setup procedures, because
> I've never needed such. (I've corresponded with Joe off-list about
> this --- maybe we can produce a FAQ about the right way to do it once
> the dust settles.)
Yup, got it.
> AFAICS this would defeat the documented behavior of being able to set
> PGHOST/PGPORT in the environment to control which postmaster "make
> installcheck" will speak to. So, yeah, I think it's a bad idea.
OK. I'll see about playing with the scripts you sent me.
Thanks,
Joe
From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: make installcheck on non-default ports |
Date: | 2003-11-26 08:42:30 |
Message-ID: | 3FC46776.5050607@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-patches |
Tom Lane wrote:
> I think there is something wrong with your setup procedures, because
> I've never needed such.
The main problem seemed to be that I had --disable-rpath in my configure
script, left over from when I was playing with options used by the RPM
spec file. Once I got rid of that, and started using a derivative of
Tom's scripts, it all started to work just fine.
Now I can do:
. pg73 (or pg74 or pg75)
cvs up
make clean
pgconfig
make all
pgctl stop
make install
pgctl start
make installcheck
I've attached the scripts in case anyone is interested.
Joe
Attachment | Content-Type | Size |
---|---|---|
setvariables.75 | text/plain | 638 bytes |
pg74 | text/plain | 66 bytes |
pg75 | text/plain | 66 bytes |
pgconfig | text/plain | 334 bytes |
pgctl | text/plain | 638 bytes |
setvariables.73 | text/plain | 639 bytes |
setvariables.74 | text/plain | 638 bytes |
pg73 | text/plain | 66 bytes |