HOW TO APPLY PATCHES

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

HOW TO APPLY PATCHES

От:
Marcia Abade <mabade@metrosp.com.br>
Дата:
Вложения:
Sorry,

I´m very new user of PostgreSQL and I need to apply a patch whitten in
C. I´m 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?...

Thanks

Marcia Abade
Cia. do Metrô de São Paulo
mabade@metrosp.com.br

Re: HOW TO APPLY PATCHES

От:
Oliver Elphick <olly@lfix.co.uk>
Дата:
Вложения:
On Wed, 2002-05-29 at 14:49, Marcia Abade wrote:
> Sorry,
> 
> 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:
    
    --- 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 
FAQ