Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id EF5B8475C03 for ; Sun, 2 Jun 2002 01:34:21 -0400 (EDT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by postgresql.org (Postfix) with ESMTP id 94C97475C9D for ; Sun, 2 Jun 2002 00:39:17 -0400 (EDT) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 17EN9F-000Kc4-0X; Sun, 02 Jun 2002 05:39:22 +0100 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 17EN9O-0001dC-00; Sun, 02 Jun 2002 05:39:30 +0100 Subject: Re: HOW TO APPLY PATCHES From: Oliver Elphick To: mabade@metrosp.com.br Cc: pgsql-docs@postgresql.org In-Reply-To: <3CF4DC66.CCFDB774@metrosp.com.br> References: <3CF4DC66.CCFDB774@metrosp.com.br> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-RVT+G/hb/bC2htfmQ7Tu" X-Mailer: Ximian Evolution 1.0.5 Date: 02 Jun 2002 05:39:30 +0100 Message-Id: <1022992770.22164.135.camel@linda> Mime-Version: 1.0 X-Archive-Number: 200206/2 X-Sequence-Number: 1377 --=-RVT+G/hb/bC2htfmQ7Tu Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2002-05-29 at 14:49, Marcia Abade wrote: > Sorry, >=20 > Im very new user of PostgreSQL and I need to apply a patch whitten in > C. Im looking for the information "how to apply patches in PostgreSQL" > and it is not part of the manual. > Could you help me? And by suggestion, could you include this information > in the Administration manual?... Applying a patch is not a task that is in any way specific to PostgreSQL, so it doesn't, I think, belong in PostgreSQL's manual. A patch is produced by using "diff -c" or "diff -u"; it contains file pathnames like this: =20=20=20=20 --- postgresql-7.2.1.orig/contrib/rserv/Makefile +++ postgresql-7.2.1/contrib/rserv/Makefile @@ -27,6 +27,7 @@ $(PERLS) $(TCLS) $(SCRIPTS): %: %.in sed -e 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' \ -e 's:@SQLDIR@:$(datadir)/contrib:g' \ + -e 's:# -\*- perl -\*-:#! /usr/bin/perl -w:' \ -e 's:@BINDIR@:$(bindir):g' \ -e 's:@LIBDIR@:$(datadir)/contrib:g' $< >$@ chmod a+x $@ --- postgresql-7.2.1.orig/src/backend/libpq/pg_hba.conf.sample +++ postgresql-7.2.1/src/backend/libpq/pg_hba.conf.sample @@ -224,22 +224,21 @@ # See $PGDATA/pg_ident.conf for more information on Ident maps. # ...[and so on]... The patch is applied with the command "patch" - check its man page. If your current directory is postgresql-7.2.1, you will apply the above patch with the command "patch -p1