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 1m4lmY-0004tE-Gu for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Jul 2021 14:59:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m4lmX-0002cE-5n for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Jul 2021 14:59:09 +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 1m4lmW-0002c6-R4 for pgsql-hackers@lists.postgresql.org; Sat, 17 Jul 2021 14:59:08 +0000 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m4lmP-0003g0-Mr for pgsql-hackers@lists.postgresql.org; Sat, 17 Jul 2021 14:59:08 +0000 Received: by mail-io1-xd2f.google.com with SMTP id z11so14318608iow.0 for ; Sat, 17 Jul 2021 07:59:00 -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=/cI8oGaLq96PJeDGUaqBhMArEwN37LtXPO383xnDPsk=; b=Rc3e4wtjA0/jyfxHbqPqI6+ZqWQpGci1IZl2eb0JCXZj1MPOJnM8/hqnm9eV/Ih8iC q70yTO2VWJnWqblsYHNOXijMi3hrR++Ddm9tTsxj2WUJnwlrbCr+I4bTXQu9IBrebpfn /JM8ekIFqiSxVbGHBLM1Z+Oa2d7KK79b4fSi29bomCIxedXFVV/iQzzHMd7eX4gQnKd3 JE6Xh/0gy23G2ec9hX3u+usI1HoiTkTdWqnqUIiPEJaKp0+guAQv/nUy2pJ5FeiKsx7/ Hl71/RWcq/5byBhgagqD0PUXYzrq0tfHjMQZ1e/aNsYxj1xe1XYopCiKr2MQLdJit1Qs 34DQ== 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=/cI8oGaLq96PJeDGUaqBhMArEwN37LtXPO383xnDPsk=; b=kUYtv5/BFRLXzJPq/F16r67bxZmIwkNJ7+HgmbELy6XbGwNg8NCXyvwyZOma06yidI yc5iQYDWaV0JGtqu/FTF1UPtQDM37jy0cl/o3B4gmZQPtwPzhGOLJgj3eIaSI3LMHuN8 ylycUyWJ9w2bYkxP8UPzaaCNUz67pQsIKMGlLK6JiOhwGQbG93Mo2dh6qEZ8XUDgwX7w 9aaVJxdGkRdX/emdwkja3Y5gFdbRnfBWVlcbJdfvoEiywCAGau+lgMNeia7WHBUlnZkP ni00IMIPjoqMPgsQQPsgDhtLB1LuIzS+H4Bu8TysBxUS0bvFUR5r16rts5iesnIzRZTO 477Q== X-Gm-Message-State: AOAM531MdOM6qqQcMxN42nXOKvhEYwi2ILj2cLdPA5BCkTrFgBF/ACgG 5HnVLoM0eJu/ZNaTOB17seyDWw== X-Google-Smtp-Source: ABdhPJy+yXvctmvsR0ax9+myvBuyIyhyUNCVP1/8Q1tT1QcE6iXjbEZMXmOGVgChXqZcoVcmoFBpSA== X-Received: by 2002:a5e:9703:: with SMTP id w3mr11358420ioj.118.1626533939004; Sat, 17 Jul 2021 07:58:59 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id z6sm6677882ilz.54.2021.07.17.07.58.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Jul 2021 07:58:58 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 31F5B800C45; Sat, 17 Jul 2021 09:58:57 -0500 (CDT) Date: Sat, 17 Jul 2021 09:58:57 -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: <20210717145856.GB19498@telsasoft.com> References: <202107171445.v4okkq2xyytm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 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: > > > > > > On Fri, Jul 09, 2021 at 09:24:19PM +0530, Bharath Rupireddy wrote: > > > > I've always had a hard time distinguishing various types of > > > > processes/terms used in postgres. I look at the source code every time > > > > to understand them, yet I don't feel satisfied with my understanding. > > > > I request any hacker (having a better idea than me) to help me with > > > > what each different process does and how they are different from each > > > > other? Of course, I'm clear with normal backends (user sessions), bg > > > > workers, but the others need a bit more understanding. > > > > > > 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 > > Process of an instance in I think "of an instance" is a distraction here, even if technically accurate. > charge of some specific, hardcoded background task. Examples are And I think "hardcoded" doesn't mean anything beyond what "specific" means. Maybe you'd say: .. process which handles a specific, central task for the cluster instance. Thanks, -- Justin