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 1ltrW2-0002Ld-H9 for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Jun 2021 12:53:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltrW1-0008VZ-Et for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Jun 2021 12:53:01 +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 1ltrW1-0008VR-2q for pgsql-hackers@lists.postgresql.org; Thu, 17 Jun 2021 12:53:01 +0000 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltrVy-0003bZ-Km for pgsql-hackers@postgresql.org; Thu, 17 Jun 2021 12:53:00 +0000 Received: by mail-il1-x12f.google.com with SMTP id i12so5226589ila.13 for ; Thu, 17 Jun 2021 05:52:58 -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=xarKYGXMyX42GMq9soaFbDs1W0zdaBwJ8X1TQnakLhk=; b=OVlZaslvdKU4cNTcdCkCNGfMtTObeLPm4yFUD0B/4SVBN7zysNj5AmW5aykHb6M5MO Nw7hFeiIMPtNQOrYGDif18BL0LkhSyDrHhiJCvm7xtumSVQ/sHbP8BuybXDtx3mnRFpj LGejwsFCt5HVEp6DOhiIFhyiYbEoP74idfOfStXZqFGxZmj27a2YdyfPwV1SQbx1LLTl 8nLCqeMlPjfDU1KGrpAP1GIJ5dQI7RirsMQ2WZ7j2cdRqwcWKwGLsWWNNzDuosmS2wm6 DiKYRkhgQW24A6WOSBwRi+aGKbGxDtyucHqeevb5Pv1pFqGOYrDBI+vI4OWzGahIbQqp Vi/Q== 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=xarKYGXMyX42GMq9soaFbDs1W0zdaBwJ8X1TQnakLhk=; b=V/YV7Kbz5mKucijT1UvPHLkKqp2rl4RtWs1wA0ym7ewrgEx8bjGJ3FNu4yI4fEf87Q Bwkujlpysyya7eJNqunfNtMF1jM3gmfeJF5Of/5V3isdA/zTVLmFAD2lQ7jNfRhDE7s+ r0RNnWqrhg1tNk09KUFcO0u3aGeek2xkNNuHnqdnFDkhzlaC8u08InWEH48fKy4DXmDB CLNiL59CnZacbnHaYHmpxI3zLMUoYxY8bEUnPoslIJY4f1CUKhEzaY94o4CV+WkAXxGA lD4XKi8G05AO+CNmCfuga1RQDNKRuSLn4wuTDrtzFAcG6C1p1FB19IACBcYX6c91X15W dwyA== X-Gm-Message-State: AOAM53359d7+ZKcvY9ZMuAd88wc6cv3/N1ibGTwNsMi8FY3HzzQKJVcQ XSHsk+JL22WlFq1HT06A6aepLQ== X-Google-Smtp-Source: ABdhPJxozpk17rBBFNtoFFa2tU7cTIByLAXyta4PYTBkjxRgdxlP1iojcEUxPuvS927k7DNTG1xPcA== X-Received: by 2002:a05:6e02:1b87:: with SMTP id h7mr3225927ili.271.1623934376274; Thu, 17 Jun 2021 05:52:56 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id e4sm2749758iow.47.2021.06.17.05.52.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jun 2021 05:52:55 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 55B60800BC8; Thu, 17 Jun 2021 07:52:54 -0500 (CDT) Date: Thu, 17 Jun 2021 07:52:54 -0500 From: Justin Pryzby To: Nitin Jadhav Cc: Tom Lane , Robert Haas , Andres Freund , Stephen Frost , Magnus Hagander , Thomas Munro , pgsql-hackers@postgresql.org Subject: Re: when the startup process doesn't (logging startup delays) Message-ID: <20210617125254.GB31772@telsasoft.com> References: <20210422010919.4b655015@firost> <20210606222305.GZ14099@telsasoft.com> <867286.1623073349@sss.pgh.pa.us> <20210609161918.GY16435@telsasoft.com> <20210610100125.GE16435@telsasoft.com> 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: Archived-At: Precedence: bulk + * Codes of the operations performed during startup process + */ +typedef enum StartupProcessOp +{ + SYNCFS_IN_PROGRESS, + FSYNC_IN_PROGRESS, + RECOVERY_IN_PROGRESS, + RESET_UNLOGGED_REL_IN_PROGRESS, + DUMMY, + SYNCFS_END, + FSYNC_END, + RECOVERY_END, + RESET_UNLOGGED_REL_END +} StartupProcessOp; What is DUMMY about ? If you just want to separate the "start" from "end", you could write: /* codes for start of operations */ FSYNC_IN_PROGRESS SYNCFS_IN_PROGRESS ... /* codes for end of operations */ FSYNC_END SYNCFS_END ... Or group them together like: FSYNC_IN_PROGRESS, FSYNC_END, SYNCFS_IN_PROGRESS, SYNCFS_END, RECOVERY_IN_PROGRESS, RECOVERY_END, RESET_UNLOGGED_REL_IN_PROGRESS, RESET_UNLOGGED_REL_END, -- Justin