Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mF4BQ-00085m-3E for pgsql-hackers@arkaria.postgresql.org; Sun, 15 Aug 2021 00:39:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mF4BM-0005ua-LB for pgsql-hackers@arkaria.postgresql.org; Sun, 15 Aug 2021 00:39:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mF4BM-0005u3-82 for pgsql-hackers@lists.postgresql.org; Sun, 15 Aug 2021 00:39:20 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mF4BE-0008WC-G7 for pgsql-hackers@lists.postgresql.org; Sun, 15 Aug 2021 00:39:19 +0000 Received: by mail-io1-xd2d.google.com with SMTP id h1so18179362iol.9 for ; Sat, 14 Aug 2021 17:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QhdMgWAzy4T3ON03f1Fi7PEKevn2AF4LNWOvSh6fMd4=; b=q/Ks9/tGhIUgm2BunxHIZXfPrFC8mlr18J+Jn5CQywJMyfcwjPdyizMRwYEd0C8EeY yNVJifsTtH9aFtlK5Q/9y8BDchSssftiQTIr1uFiK0DdVztckIcMpidP7JONAKm/94d8 UkXyLTA/mXO7oGrq98cfkA8AFMsD1kUodFxn+gnf/lFkX2CuQEOleAcj9fAqoq1wAv0J sS4kH4rtZhrHRvrhvuS0WqWBHrJkyNhsn9CtSyf3fs3pj2eRVRnWONczw0kAt4qiH5w4 iMTXm9y2S8+ZFnF7qAA0vyesH0Xt1rGPXB8JDH9T5gV5wCedFCuphKpnmaezqVfdEeg1 7ihg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QhdMgWAzy4T3ON03f1Fi7PEKevn2AF4LNWOvSh6fMd4=; b=LkiBr1Tqmm1IntEVCtf1E/n6nY+MKiLVtRow/xpGnaD7fGQOSNRUEU0MOO5h4ZmcY4 01Mris7TK1G8oFtGa+Hlqw2vsIOgjqpOfNr3KY12nrgscdCmw9N1ZiCFTehZ51FIfghe PLgssyfZVaHFZKvdrmdgkVTXSQKQZgEaKEy07HIM/tlYa5CMH6cNwa6ijYIMy15iblpU NYFK9WgIKz4C4cayhQbGnjp9rUArBN4sNX9zaUkDb7A9mBcoPF+g91a/FVQrNggse4Xe E1ARQ7lAtbHNoaSO4rlckzqEwyZIB6+M3SNhdMMby1fXA+wCChUHxrXBxUfX/txR0+t3 dP/w== X-Gm-Message-State: AOAM531nJ9PMHbRLMjHbuNcRpFltEptow0f+hFo3VjP1Xk59wD9niYl5 ins2rwP7u+yg2qSR3lhZlXvHzg== X-Google-Smtp-Source: ABdhPJzQJ1iAtd+6lZFOMXOrBnYapkin16nBX3k3cWi+3ZRq970NDFdEzxA27SEZUIRcimLg2eu5LA== X-Received: by 2002:a6b:7209:: with SMTP id n9mr7527674ioc.67.1628987950554; Sat, 14 Aug 2021 17:39:10 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id d24sm3210142ioc.23.2021.08.14.17.39.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Aug 2021 17:39:09 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id A5D99800837; Sat, 14 Aug 2021 19:39:08 -0500 (CDT) Date: Sat, 14 Aug 2021 19:39:08 -0500 From: Justin Pryzby To: Alvaro Herrera Cc: Bharath Rupireddy , pgsql-hackers@lists.postgresql.org Subject: Re: What are exactly bootstrap processes, auxiliary processes, standalone backends, normal backends(user sessions)? Message-ID: <20210815003908.GP10479@telsasoft.com> References: <202107171445.v4okkq2xyytm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="H1spWtNR+x+ondvy" Content-Disposition: inline In-Reply-To: <202107171445.v4okkq2xyytm@alvherre.pgsql> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --H1spWtNR+x+ondvy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Jul 17, 2021 at 10:45:52AM -0400, Alvaro Herrera wrote: > On 2021-Jul-17, Bharath Rupireddy wrote: > > On Thu, Jul 15, 2021 at 8:17 PM Justin Pryzby wrote: > > > It sounds like something that should be in the glossary, which currently refers > > > to but doesn't define "auxiliary processes". > > > > Thanks. I strongly feel that it should be documented somewhere. I will > > be happy if someone with a clear idea about these various processes > > does it. > > Auxiliary process I elaborated on your definition and added here. https://commitfest.postgresql.org/34/3285/ --H1spWtNR+x+ondvy Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-glossary-definitions-for-auxiliary-processes.patch" From 9855c0d186251407c868fe0b0d93571541313f55 Mon Sep 17 00:00:00 2001 From: Justin Pryzby Date: Sat, 14 Aug 2021 18:51:37 -0500 Subject: [PATCH] glossary definitions for auxiliary processes --- doc/src/sgml/glossary.sgml | 58 ++++++++++++++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/doc/src/sgml/glossary.sgml b/doc/src/sgml/glossary.sgml index 63ff4bbdf0..881d16d6c4 100644 --- a/doc/src/sgml/glossary.sgml +++ b/doc/src/sgml/glossary.sgml @@ -123,6 +123,27 @@ + + Auxiliary process + + + Process that is in charge of a specific, hardcoded, background task for + an instance. + The auxiliary processes consist of + + the background writer, + the checkpointer, + the statistics collector, + the logger, + the startup process, + the WAL archiver. + the WAL receiver + (but not the WAL senders), and the + WAL writer. + + + + Backend (process) @@ -163,7 +184,7 @@ Background writer (process) - A process that writes dirty + An auxiliary process that writes dirty data pages from shared memory to the file system. It wakes up periodically, but works only for a short @@ -285,7 +306,7 @@ Checkpointer (process) - A specialized process responsible for executing checkpoints. + An auxiliary process that is responsible for executing checkpoints. @@ -881,7 +902,7 @@ Logger (process) - If activated, the process + An auxiliary process which (if enabled) writes information about database events into the current log file. When reaching certain time- or @@ -1452,6 +1473,16 @@ + + Startup process + + + An auxiliary process that replays WAL during crash recovery and (on + replicas) archive recovery. + + + + SQL object @@ -1514,7 +1545,7 @@ Stats collector (process) - This process collects statistical information about the + An auxiliary process that collects statistical information about the instance's activities. @@ -1856,7 +1887,8 @@ WAL archiver (process) - A process that saves copies of WAL files + An auxiliary process that saves copies of + WAL files for the purpose of creating backups or keeping replicas current. @@ -1914,6 +1946,22 @@ + + WAL receiver + + + An auxiliary process that runs on a + replica + to receive and replay WAL from the primary server. + + + + For more information, see + . + + + + WAL segment -- 2.17.0 --H1spWtNR+x+ondvy--