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 1jEN8U-0007fP-QV for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2020 01:04:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEN8T-0001KY-JB for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2020 01:04:41 +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 1jEN8T-0001GC-AH for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2020 01:04:41 +0000 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jEN8Q-0003oT-8k for pgsql-hackers@postgresql.org; Wed, 18 Mar 2020 01:04:40 +0000 Received: by mail-qv1-xf44.google.com with SMTP id z13so5884302qvw.3 for ; Tue, 17 Mar 2020 18:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=FqHpgIHHVR9KCkpx8G6nxjvdbAdsGIQKhcUqxNAHTTk=; b=VKN421aUl2LRHmFE1uo5hRYAa+yBbrp5Rs0J97kKNUL6zGaCFIOAky/qjQmGfFW2d4 aAdc8fWpjCMG1jZydK2AtUyVLF6AVBLqR5CtTW7AMS7Un8DlB6rDPMkRpNgTH9av3Oqm 5ZEzQTpFd4/VJ1jsg9SrnLBsHMehHpWf+omQaI5hHhLuDvoUJ5MJrx+UrcXCBTn19h8h 47da3IxU/BNlP28LPGRHzsh6PjA05lHzfdjz9rZd4NXYGIPEwu0DdOQxA9JAxL2+6mLb Z9FyN0PSjzcP27AvMcCPYBDG1t+64+5sMkUI+diOclCoG2DxPtWbGm8ZxDK5+F9wHNjp HSWA== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=FqHpgIHHVR9KCkpx8G6nxjvdbAdsGIQKhcUqxNAHTTk=; b=RjH8VxmmkG4vcgtwktED11fcZU592/GoP8EUZ6670K+fN1XHQPLTM9BiR7kV+1pXAg IGU4pcQNK/v5b1O0CSBgIQlmDXxnvWsizZEYzhsBVPnVzewPCJQNEZqCwYJU3LUAoOwr IDhv+nzVorKK4/TBHzsU7yRNNyLjRx0ftd+vE953xS7m9/eH1D90b9S6LkdxWqBdYVTy m7BoOzOuhZuhf2A9sVy8kCR2WD9+90LpYVlmvMo2sODcdpXRLoWgwdwhZif9/ZWIOvrT /wnIAHNm9ZnG6Ec253Xxci2QNMS3kAAyhCKl7Q9OvAT+L7oaI89h2mQY8jOndtK17TSR wClw== X-Gm-Message-State: ANhLgQ1BVYt4Y0XapjJAraFhkccXC+frCIHIka5E192p8/HUoWRBUsW7 gYlOFCerfSYEcERZL1Zzn3p6sg== X-Google-Smtp-Source: ADFU+vvbtjsTRMhF/XyYXejh8gLBhtaRZ4JsFy6RaG2o+ExEb81PCueJOpWgV0c4kXIucxWi5zb+lA== X-Received: by 2002:a0c:ffca:: with SMTP id h10mr1978315qvv.100.1584493476445; Tue, 17 Mar 2020 18:04:36 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.51.165]) by smtp.gmail.com with ESMTPSA id s195sm3082068qke.25.2020.03.17.18.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 18:04:35 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 65E783007EA; Tue, 17 Mar 2020 22:04:33 -0300 (-03) Date: Tue, 17 Mar 2020 22:04:33 -0300 From: Alvaro Herrera To: Justin Pryzby Cc: Mike Palmiotto , Michael Paquier , Andres Freund , Yuli Khodorkovskiy , Tom Lane , pgsql-hackers@postgresql.org Subject: Re: Auxiliary Processes and MyAuxProc Message-ID: <20200318010433.GA17520@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200317215218.GC26184@telsasoft.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services