Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEZVj-0002cg-Bj for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2020 14:17:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEZVi-00084h-4z for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2020 14:17:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEZVh-00084a-PJ for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2020 14:17:29 +0000 Received: from mail-qv1-xf41.google.com ([2607:f8b0:4864:20::f41]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jEZVe-0002E4-Cn for pgsql-hackers@postgresql.org; Wed, 18 Mar 2020 14:17:29 +0000 Received: by mail-qv1-xf41.google.com with SMTP id ca9so12942863qvb.9 for ; Wed, 18 Mar 2020 07:17:25 -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=tpOojKHA1GTFaH6tx/Mm33d6WvKD8NLBcGVwOi5V6EU=; b=zj2eSnHWP8DmGUcq3FqFuyGw9v17m88S8iYCW+DWAMrdtBry9TqB2Rku4GV+ArnzDb Oweyc+I1PS/mP+a6+tJIoc3PVmlBxT07fMiPA8p69QWS0hGlqFZvXPSiF/aF9qj3cNpB yDjnFigcz7mrJ/22C2m8F6LgF9twty+w92Wuj85CT89/ETgaSAz+NF4o9d++Hweq9Pzs FNKq2LFM/Vid4BdO4ZljaA05zI7eRiFr4CB8+dxTps8a2n/kdwI2sKTNTaYf6GkWgoQ7 EDHdl+tfMyJNQ91ooi+Ife66CAJXPHLvwm3NeFz0jam5oGx8HkuUurANpxurw9kiPrnf bs5Q== 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=tpOojKHA1GTFaH6tx/Mm33d6WvKD8NLBcGVwOi5V6EU=; b=aiI+7u3FMnCpwNf525F0WkX9OztkK1ZOuzKnJYGU6K3LUhb8zOQby7R0oz0kjlgFvE 8iYM++6F3SUeMdh0bSBEH2KtIjK3m6g3njxqVoR7ow1tqZnDhwpJ/jr/rjNj7jd+mCNC 1N/XxNe/OyV60rWqLnx5kM4klgm4eFiwwLswCK3DUCkk3qiXByGghejiHhxGT2Uxp5R8 M/zh4txr/RT963MdG1I5jHoL+7LcUXrf/jgIJBV6qUW5FXurey8143uaxTzvHi5hyf1L xv6EoQ22nPhAHEGbr/0reqFfUg95RO/AmOPB5iS3msaEIEmI7BofKZ3sHAN/KIbjMsN3 Vg8g== X-Gm-Message-State: ANhLgQ1RYHQaGasg2i+gLl/KMZDIWNVlJIPI4vBva0GxHigL4FD5qOqY AKJZ+hrktcKHz6VoYDYnex5AMQ== X-Google-Smtp-Source: ADFU+vtadTC0d0s3oby6RbJdV5GcMn5hjrBknptneogzzuKKBZc8rVa/MvTHwG4wY57CF+vcSRCVOg== X-Received: by 2002:a05:6214:10c1:: with SMTP id r1mr4565744qvs.70.1584541043324; Wed, 18 Mar 2020 07:17:23 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id q75sm4141891qke.12.2020.03.18.07.17.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2020 07:17:22 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id ED068800C28; Wed, 18 Mar 2020 09:17:20 -0500 (CDT) Date: Wed, 18 Mar 2020 09:17:20 -0500 From: Justin Pryzby To: Mike Palmiotto Cc: Alvaro Herrera , Michael Paquier , Andres Freund , Yuli Khodorkovskiy , Tom Lane , pgsql-hackers@postgresql.org Subject: Re: Auxiliary Processes and MyAuxProc Message-ID: <20200318141720.GH26184@telsasoft.com> References: <20200317215218.GC26184@telsasoft.com> <20200318010433.GA17520@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Mar 18, 2020 at 09:22:58AM -0400, Mike Palmiotto wrote: > On Tue, Mar 17, 2020 at 9:04 PM Alvaro Herrera wrote: > > > > On 2020-Mar-17, Justin Pryzby wrote: > > > > > +static PgSubprocess process_types[] = { > > > + { > > > + .desc = "checker", > > > + .entrypoint = CheckerModeMain > > > + }, > > > + { > > > + .desc = "bootstrap", > > > + .entrypoint = BootstrapModeMain > > > + }, > > > > Maybe this stuff can be resolved using a technique like rmgrlist.h or > > cmdtaglist.h. That way it's not in two separate files. > > Great suggestion, thanks! I'll try this out in the next version. Also, I saw this was failing tests both before and after my rebase. http://cfbot.cputube.org/ https://ci.appveyor.com/project/postgresql-cfbot/postgresql/builds/31535161 https://ci.appveyor.com/project/postgresql-cfbot/postgresql/builds/31386446 -- Justin