head	1.24;
access;
symbols
	REL9_0_0:1.24
	REL9_1_ALPHA1:1.24
	REL9_0_RC1:1.24
	REL9_0_BETA4:1.24
	REL9_0_STABLE:1.24.0.14
	REL9_0_BETA3:1.24
	REL9_0_BETA2:1.24
	REL7_4_29:1.13
	REL8_0_25:1.19
	REL8_1_21:1.21
	REL8_2_17:1.21
	REL8_3_11:1.23
	REL8_4_4:1.24
	REL9_0_BETA1:1.24
	REL9_0_ALPHA5_BRANCH:1.24.0.12
	REL9_0_ALPHA5:1.24
	REL7_4_28:1.13
	REL8_0_24:1.19
	REL8_1_20:1.21
	REL8_2_16:1.21
	REL8_3_10:1.23
	REL8_4_3:1.24
	REL9_0_ALPHA4:1.24
	REL9_0_ALPHA4_BRANCH:1.24.0.10
	REL8_5_ALPHA3:1.24
	REL8_5_ALPHA3_BRANCH:1.24.0.8
	REL7_4_27:1.13
	REL8_0_23:1.19
	REL8_1_19:1.21
	REL8_2_15:1.21
	REL8_3_9:1.23
	REL8_4_2:1.24
	REL8_5_ALPHA2:1.24
	REL8_5_ALPHA2_BRANCH:1.24.0.6
	REL7_4_26:1.13
	REL8_0_22:1.19
	REL8_1_18:1.21
	REL8_2_14:1.21
	REL8_3_8:1.23
	REL8_4_1:1.24
	REL8_5_ALPHA1:1.24
	REL8_5_ALPHA1_BRANCH:1.24.0.4
	REL8_4_STABLE:1.24.0.2
	REL8_4_0:1.24
	REL8_4_RC2:1.24
	REL8_4_RC1:1.24
	REL8_4_BETA2:1.24
	REL8_4_BETA1:1.24
	REL7_4_25:1.13
	REL8_0_21:1.19
	REL8_1_17:1.21
	REL8_2_13:1.21
	REL8_3_7:1.23
	REL7_4_24:1.13
	REL8_0_20:1.19
	REL8_1_16:1.21
	REL8_2_12:1.21
	REL8_3_6:1.23
	REL7_4_23:1.13
	REL8_0_19:1.19
	REL8_1_15:1.21
	REL8_2_11:1.21
	REL8_3_5:1.23
	REL7_4_22:1.13
	REL8_0_18:1.19
	REL8_1_14:1.21
	REL8_2_10:1.21
	REL8_3_4:1.23
	REL7_4_21:1.13
	REL8_0_17:1.19
	REL8_1_13:1.21
	REL8_2_9:1.21
	REL8_3_3:1.23
	REL7_4_20:1.13
	REL8_0_16:1.19
	REL8_1_12:1.21
	REL8_2_8:1.21
	REL8_3_2:1.23
	REL8_2_7:1.21
	REL8_3_1:1.23
	REL8_3_STABLE:1.23.0.2
	REL8_3_0:1.23
	REL8_3_RC2:1.23
	REL7_3_21:1.13
	REL7_4_19:1.13
	REL8_0_15:1.19
	REL8_1_11:1.21
	REL8_2_6:1.21
	REL8_3_RC1:1.23
	REL8_3_BETA4:1.23
	REL8_3_BETA3:1.23
	REL8_3_BETA2:1.23
	REL8_3_BETA1:1.23
	REL7_3_20:1.13
	REL7_4_18:1.13
	REL8_0_14:1.19
	REL8_1_10:1.21
	REL8_2_5:1.21
	REL7_3_19:1.13
	REL7_4_17:1.13
	REL8_0_13:1.19
	REL8_1_9:1.21
	REL8_2_4:1.21
	REL8_0_12:1.19
	REL8_1_8:1.21
	REL8_2_3:1.21
	REL7_3_18:1.13
	REL7_4_16:1.13
	REL8_0_11:1.19
	REL8_1_7:1.21
	REL8_2_2:1.21
	REL8_0_10:1.19
	REL8_1_6:1.21
	REL8_2_1:1.21
	REL7_4_15:1.13
	REL7_3_17:1.13
	REL8_2_STABLE:1.21.0.4
	REL8_2_0:1.21
	REL8_2_RC1:1.21
	REL8_2_BETA3:1.21
	REL8_2_BETA2:1.21
	REL8_1_5:1.21
	REL8_0_9:1.19
	REL7_4_14:1.13
	REL7_3_16:1.13
	REL8_2_BETA1:1.21
	REL7_3_15:1.13
	REL7_4_13:1.13
	REL8_0_8:1.19
	REL8_1_4:1.21
	REL7_3_14:1.13
	REL7_4_12:1.13
	REL8_0_7:1.19
	REL8_1_3:1.21
	REL7_3_13:1.13
	REL7_4_11:1.13
	REL8_0_6:1.19
	REL8_1_2:1.21
	REL7_3_12:1.13
	REL7_4_10:1.13
	REL8_0_5:1.19
	REL8_1_1:1.21
	REL8_1_STABLE:1.21.0.2
	REL8_1_0:1.21
	REL8_1_0RC1:1.21
	REL8_1_0BETA4:1.21
	REL8_1_0BETA3:1.21
	REL7_3_11:1.13
	REL7_4_9:1.13
	REL8_0_4:1.19
	REL8_1_0BETA2:1.21
	REL8_1_0BETA1:1.21
	REL7_2_8:1.13
	REL7_3_10:1.13
	REL7_4_8:1.13
	REL8_0_3:1.19
	REL8_0_2:1.19
	REL7_2_7:1.13
	REL7_3_9:1.13
	REL7_4_7:1.13
	REL8_0_1:1.19
	REL8_0_STABLE:1.19.0.4
	REL8_0_0:1.19.0.2
	REL8_0_0RC5:1.19
	REL8_0_0RC4:1.19
	REL8_0_0RC3:1.19
	REL8_0_0RC2:1.19
	REL8_0_0RC1:1.19
	REL8_0_0BETA5:1.19
	REL8_0_0BETA4:1.19
	REL7_4_6:1.13
	REL7_3_8:1.13
	REL7_2_6:1.13
	REL8_0_0BETA3:1.19
	REL8_0_0BETA2:1.19
	REL7_2_5:1.13
	REL7_4_5:1.13
	REL7_3_7:1.13
	REL7_4_4:1.13
	REL8_0_0BETA1:1.19
	REL7_4_3:1.13
	REL7_4_2:1.13
	REL7_3_6:1.13
	REL7_4_1:1.13
	REL7_3_5:1.13
	REL7_4:1.13
	REL7_4_RC2:1.13
	REL7_4_STABLE:1.13.0.8
	REL7_4_RC1:1.13
	REL7_4_BETA5:1.13
	REL7_4_BETA4:1.13
	REL7_4_BETA3:1.13
	REL7_4_BETA2:1.13
	WIN32_DEV:1.13.0.6
	REL7_4_BETA1:1.13
	REL7_3_4:1.13
	REL7_3_2:1.13
	REL7_2_4:1.13
	REL7_3_STABLE:1.13.0.4
	REL7_2_3:1.13
	REL7_2_STABLE:1.13.0.2
	REL7_2:1.13
	REL7_2_RC2:1.13
	REL7_2_RC1:1.13
	REL7_2_BETA5:1.13
	REL7_2_BETA4:1.13
	REL7_2_BETA3:1.13
	REL7_2_BETA2:1.13
	REL7_2_BETA1:1.13
	REL7_1_2:1.12
	REL7_1_STABLE:1.12.0.2
	REL7_1_BETA:1.12
	REL7_1_BETA3:1.12
	REL7_1_BETA2:1.12
	REL7_1:1.12
	REL7_0_PATCHES:1.10.0.2
	REL7_0:1.10
	REL6_5_PATCHES:1.8.0.4
	REL6_5:1.8
	REL6_4:1.8.0.2
	release-6-3:1.7
	REL2_0B:1.3.0.2
	REL2_0:1.3;
locks; strict;
comment	@# @;


1.24
date	2008.02.19.10.30.07;	author petere;	state Exp;
branches;
next	1.23;

1.23
date	2007.07.24.04.54.09;	author tgl;	state Exp;
branches;
next	1.22;

1.22
date	2007.01.20.17.16.12;	author petere;	state Exp;
branches;
next	1.21;

1.21
date	2005.07.14.05.13.40;	author tgl;	state Exp;
branches;
next	1.20;

1.20
date	2005.03.10.07.14.03;	author neilc;	state Exp;
branches;
next	1.19;

1.19
date	2004.08.05.23.32.10;	author tgl;	state Exp;
branches;
next	1.18;

1.18
date	2004.07.21.20.34.46;	author momjian;	state Exp;
branches;
next	1.17;

1.17
date	2004.07.21.20.22.59;	author momjian;	state Exp;
branches;
next	1.16;

1.16
date	2004.07.19.02.47.08;	author tgl;	state Exp;
branches;
next	1.15;

1.15
date	2004.05.29.22.48.19;	author tgl;	state Exp;
branches;
next	1.14;

1.14
date	2003.11.29.19.51.55;	author pgsql;	state Exp;
branches;
next	1.13;

1.13
date	2001.06.22.19.16.22;	author wieck;	state Exp;
branches;
next	1.12;

1.12
date	2000.08.31.16.10.23;	author petere;	state Exp;
branches;
next	1.11;

1.11
date	2000.05.29.05.44.58;	author tgl;	state Exp;
branches;
next	1.10;

1.10
date	99.12.13.22.33.19;	author momjian;	state Exp;
branches;
next	1.9;

1.9
date	99.12.09.19.14.54;	author momjian;	state Exp;
branches;
next	1.8;

1.8
date	98.04.06.00.24.26;	author momjian;	state Exp;
branches;
next	1.7;

1.7
date	97.12.20.00.26.52;	author scrappy;	state Exp;
branches;
next	1.6;

1.6
date	97.12.19.02.06.34;	author scrappy;	state Exp;
branches;
next	1.5;

1.5
date	97.04.02.18.12.39;	author scrappy;	state Exp;
branches;
next	1.4;

1.4
date	96.12.28.02.12.04;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	96.11.09.06.20.48;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	96.11.03.04.48.27;	author scrappy;	state Exp;
branches;
next	1.1;

1.1
date	96.10.27.09.51.20;	author bryanh;	state Exp;
branches;
next	;


desc
@@


1.24
log
@Refactor backend makefiles to remove lots of duplicate code
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for src/backend/postmaster
#
# IDENTIFICATION
#    $PostgreSQL: pgsql/src/backend/postmaster/Makefile,v 1.23 2007/07/24 04:54:09 tgl Exp $
#
#-------------------------------------------------------------------------

subdir = src/backend/postmaster
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

OBJS = autovacuum.o bgwriter.o fork_process.o pgarch.o pgstat.o postmaster.o \
	syslogger.o walwriter.o

include $(top_srcdir)/src/backend/common.mk
@


1.23
log
@Create a new dedicated Postgres process, "wal writer", which exists to write
and fsync WAL at convenient intervals.  For the moment it just tries to
offload this work from backends, but soon it will be responsible for
guaranteeing a maximum delay before asynchronously-committed transactions
will be flushed to disk.

This is a portion of Simon Riggs' async-commit patch, committed to CVS
separately because a background WAL writer seems like it might be a good idea
independently of the async-commit feature.  I rebased walwriter.c on
bgwriter.c because it seemed like a more appropriate way of handling signals;
while the startup/shutdown logic in postmaster.c is more like autovac because
we want walwriter to quit before we start the shutdown checkpoint.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/postmaster/Makefile,v 1.22 2007/01/20 17:16:12 petere Exp $
d18 1
a18 7
all: SUBSYS.o

SUBSYS.o: $(OBJS)
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)

clean: 
	rm -f SUBSYS.o $(OBJS) 
@


1.22
log
@Remove remains of old depend target.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/postmaster/Makefile,v 1.21 2005/07/14 05:13:40 tgl Exp $
d15 2
a16 2
OBJS = bgwriter.o autovacuum.o pgarch.o pgstat.o postmaster.o syslogger.o \
	fork_process.o
@


1.21
log
@Integrate autovacuum functionality into the backend.  There's still a
few loose ends to be dealt with, but it seems to work.  Alvaro Herrera,
based on the contrib code by Matthew O'Connor.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/postmaster/Makefile,v 1.20 2005/03/10 07:14:03 neilc Exp $
a22 3
depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend

a24 4

ifeq (depend,$(wildcard depend))
include depend
endif
@


1.20
log
@Refactor fork()-related code. We need to do various housekeeping tasks
before we can invoke fork() -- flush stdio buffers, save and restore the
profiling timer on Linux with LINUX_PROFILE, and handle BeOS stuff. This
patch moves that code into a single function, fork_process(), instead of
duplicating it at the various callsites of fork().

This patch doesn't address the EXEC_BACKEND case; there is room for
further cleanup there.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/postmaster/Makefile,v 1.19 2004/08/05 23:32:10 tgl Exp $
d15 2
a16 1
OBJS = bgwriter.o fork_process.o pgarch.o pgstat.o postmaster.o syslogger.o
@


1.19
log
@Create a built-in log rotation program, so that we no longer have to
recommend that people go get Apache's rotatelogs program.  Additional
benefits are that configuration is done through GUC, rather than
externally, and that the postmaster can monitor the log rotator and
restart it after failure (though we certainly hope that won't happen
often).
Andreas Pflug, some rework by Tom Lane.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/backend/postmaster/Makefile,v 1.18 2004/07/21 20:34:46 momjian Exp $
d15 1
a15 1
OBJS = postmaster.o bgwriter.o pgstat.o pgarch.o syslogger.o
@


1.18
log
@Back out pg_autovacuum commit after cvs clean failure causes commit.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/backend/postmaster/Makefile,v 1.16 2004/07/19 02:47:08 tgl Exp $
d15 1
a15 1
OBJS = postmaster.o bgwriter.o pgstat.o pgarch.o
@


1.17
log
@lease find enclosed a patch that matches the PL/Perl documentation
(fairly closely, I hope) to the current PL/Perl implementation.

David Fetter
@
text
@d15 1
a15 1
OBJS = postmaster.o bgwriter.o pgstat.o pgarch.o pg_autovacuum.o
@


1.16
log
@XLOG file archiving and point-in-time recovery.  There are still some
loose ends and a glaring lack of documentation, but it basically works.

Simon Riggs with some editorialization by Tom Lane.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/backend/postmaster/Makefile,v 1.15 2004/05/29 22:48:19 tgl Exp $
d15 1
a15 1
OBJS = postmaster.o bgwriter.o pgstat.o pgarch.o
@


1.15
log
@Separate out bgwriter code into a logically separate module, rather
than being random pieces of other files.  Give bgwriter responsibility
for all checkpoint activity (other than a post-recovery checkpoint);
so this child process absorbs the functionality of the former transient
checkpoint and shutdown subprocesses.  While at it, create an actual
include file for postmaster.c, which for some reason never had its own
file before.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/backend/postmaster/Makefile,v 1.14 2003/11/29 19:51:55 pgsql Exp $
d15 1
a15 1
OBJS = postmaster.o bgwriter.o pgstat.o
@


1.14
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d4 1
a4 1
#    Makefile for postmaster
d7 1
a7 1
#    $PostgreSQL: /cvsroot/pgsql-server/src/backend/postmaster/Makefile,v 1.13 2001/06/22 19:16:22 wieck Exp $
d15 1
a15 1
OBJS = postmaster.o pgstat.o
@


1.13
log
@Statistical system views (yet without the config stuff, but
it's hard to keep such massive changes in sync with the tree
so I need to get it in and work from there now).

Jan
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.12 2000/08/31 16:10:23 petere Exp $
@


1.12
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.11 2000/05/29 05:44:58 tgl Exp $
d15 1
a15 1
OBJS = postmaster.o
@


1.11
log
@Generated header files parse.h and fmgroids.h are now copied into
the src/include tree, so that -I backend is no longer necessary anywhere.
Also, clean up some bit rot in contrib tree.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.10 1999/12/13 22:33:19 momjian Exp $
d11 3
a13 2
SRCDIR = ../..
include ../../Makefile.global
a30 1

@


1.10
log
@New LDOUT makefile variable for QNX os.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.9 1999/12/09 19:14:54 momjian Exp $
a12 2

CFLAGS += -I..
@


1.9
log
@Make LD -r as macros that can be changed for QNX.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.8 1998/04/06 00:24:26 momjian Exp $
d21 1
a21 1
	$(LD) $(LDREL) -o SUBSYS.o $(OBJS)
@


1.8
log
@Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.7 1997/12/20 00:26:52 scrappy Exp $
d21 1
a21 1
	$(LD) -r -o SUBSYS.o $(OBJS)
@


1.7
log
@Major cleanout of PORTNAME variables from Makefiles...bound to screw up
some of the ports...
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.6 1997/12/19 02:06:34 scrappy Exp $
d14 1
a14 3
INCLUDE_OPT = -I.. 

CFLAGS+=$(INCLUDE_OPT)
d24 1
a24 1
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
@


1.6
log
@More cleanups.  I can now compile without PORTNAME being defined n
Makefile.global.

End result, if all goes well, should allow for much easier porting, since
there will no longer be a concept of a "port".  Most, if not everything,
*should* be determined by configure, or by the compiler itself.  Still
work to be done though :)
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.5 1997/04/02 18:12:39 scrappy Exp $
a14 4

ifdef PORTNAME
INCLUDE_OPT+=-I../port/$(PORTNAME) 
endif
@


1.5
log
@From: Oleg Bartunov <oleg@@sai.msu.su>
Subject: [HACKERS] locale patches !

Hi there,

here are little patches to get Postgres 6.1 works with locale stuff.
This is a patch against 970402.tar.gz, there are no problem to apply them
by hand to 6.0 release. Collate stuff tested about 1-2 months in real
working database but I'm sure there must be no problem. US hackers
could vote against locale implementation ( locale for sure will affect to
speed of postgres ), so I introduce variable USE_LOCALE which
controls locale stuff. Non-US users now could use ~* operator
for searching and <order by> for strings with nation alphabet.
Please, don't forget, as I did first time, to set environment variable
LC_CTYPE and LC_COLLATE because backend get locale information from them.
I start postmaster from a little script, assuming that shell is Bash shell
it looks like:

#!/bin/sh

export LC_CTYPE=koi8-r
export LC_COLLATE=koi8-r
postmaster -B 1024 -S -D/usr/local/pgsql/data/ -o '-Fe'
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/postmaster/Makefile,v 1.4 1996/12/28 02:12:04 momjian Exp $
d14 5
a18 3
INCLUDE_OPT = -I.. \
              -I../port/$(PORTNAME) \
              -I../../include
@


1.4
log
@Here's the final set of patches to 6.0 (sup'd on 27/12/96) that allow a full
gmake of the code without interruption.

There's also some tidy-up of the MAXPATHLEN stuff based on the assumption that
all supported platforms have MAXPATHLEN defined in <sys/param.h>.

(The only unknowns for the above are AIX and IRIX5.)
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/postmaster/Makefile,v 1.3 1996/11/09 06:20:48 momjian Exp $
a18 11

ifeq ($(PORTNAME), sparc_solaris)

ifeq ($(CC), gcc)
# Until we figure out how to get rid of the warnings in this directory,
# we must turn off any -Werror that is in CFLAGS now.  These options only
# exist for the gcc compiler.
CFLAGS+= -Wno-error
endif

endif
@


1.3
log
@Makefile cleanup after reorganization
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/postmaster/Makefile,v 1.2 1996/11/03 04:48:27 scrappy Exp $
d19 11
@


1.2
log
@Clean up Makefile, make sure that postmaster.c compiles
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/postmaster/Makefile,v 1.1 1996/10/27 09:51:20 bryanh Exp $
d14 2
a15 1
INCLUDE_OPT = -I../port/$(PORTNAME) \
@


1.1
log
@Simplify make files, add full dependencies.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/access/common/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:09 scrappy Exp $
d14 1
a14 3
INCLUDE_OPT = -I.. \
              -I../port/$(PORTNAME) \
              -I../include \
@
