Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkZ7I-00ExKJ-Sn for pgsql-sql@arkaria.postgresql.org; Mon, 25 Sep 2023 00:06:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qkZ7H-00BrEq-Eh for pgsql-sql@arkaria.postgresql.org; Mon, 25 Sep 2023 00:06:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkZ7H-00BrET-49 for pgsql-sql@lists.postgresql.org; Mon, 25 Sep 2023 00:06:23 +0000 Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qkZ7E-006RwX-Nm for pgsql-sql@lists.postgresql.org; Mon, 25 Sep 2023 00:06:21 +0000 Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-57bd4e4ada6so87842eaf.3 for ; Sun, 24 Sep 2023 17:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695600380; x=1696205180; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=f00eRSYbcFkyNr1fSyTr41sC3ODQmMQGiiyj+3jclAs=; b=R3YgWsWsAytWPSg5m/VudQAwPzF+K+/rKGaPFNTW0CVZ/IElYRHwWi6Rj0fbC1iDAn L4r0g5crkkX66SRFKLyZYG+6iMQDYC+fMK5XbfQ5QP3v7TTTCsRZx76ugWAXspp6MX6V XA9jwzNoCgHpKrHmTzzz1G8++BkqcsH29esKrrXqwIMJY8jEeSlrQZqCDSkghqzDOge0 phO4C9FE2W/iVmCcHUaejsztkESoDJzIKP0q+ijgsNQtlhEJq5OTUOq0JWbDPH+TKyLn EmbovfBj832Tylc8mh3me/WgzSWgjxESHWleIGgvkRhBIrjPzGunnHI1HrlO4LANzY3D V74A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695600380; x=1696205180; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f00eRSYbcFkyNr1fSyTr41sC3ODQmMQGiiyj+3jclAs=; b=Aqm+D7peXzSYUwv0DkMTCP5psQYT3ZAXPqUgh59SOB8E545SIqkMFh5mBhpz8JCdA2 t+7R4vy7WuQ6qCYxr5d9CMtJvIcj6ldXa6qTt0tnSi6VEecEFZ1bOt055/WmA1Rp0FCk Xwjor/ky8xvKHSKc4cw9sOBbOkPdcFphbkXTFz7+8N1a9sdptcrHK9dDKMKWdFkVegAV MY7XQZ/9Zp7EkSyQm2b92XRamrqIkMjV09oItB26zJsJk/G7sspO6/8bKR4oDRyrvOWl 9itePlkXKExyyWokL1KEH42GrzakdJO/9lll2bC2YXfuNhsa3pWGQjQ9KAYyootZl3HN WlxA== X-Gm-Message-State: AOJu0Yz5DOK2e3usKwLXmeeX8St2Pi8OOkn8vLmNogUBkFzAnD/z7nnX R5GOzsaVqFqEabC5Jfz9eoZxVAMrTaZYIMVtP0U= X-Google-Smtp-Source: AGHT+IHiZzPk4gPH2TIQ2nnIROyEZWQZiPCCjAnfn2weJHXlVp+k1GJKCCjuEZhdWgKHmPF1JJiDIPQi+PSwJptKqkM= X-Received: by 2002:a4a:615b:0:b0:57b:3424:147f with SMTP id u27-20020a4a615b000000b0057b3424147fmr4364645ooe.9.1695600380032; Sun, 24 Sep 2023 17:06:20 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a8a:151:0:b0:4f6:384b:17ef with HTTP; Sun, 24 Sep 2023 17:06:19 -0700 (PDT) In-Reply-To: References: From: "David G. Johnston" Date: Sun, 24 Sep 2023 17:06:19 -0700 Message-ID: Subject: Re: DDL in active production database To: "Skelton, Adam J" Cc: "pgsql-sql@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000005539b9060623ba39" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005539b9060623ba39 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sunday, September 24, 2023, Skelton, Adam J wrote: > > Does Postgres have problems with creation / changes to database schema > objects when the database is actively being used? > It doesn=E2=80=99t have problems. It does require locks that can preclude = active use of those table for selects and updates while the DDL is processing. Whether that is an issue for your application depends on the application. And the duration required depending upon table size and the specific command. David J. --0000000000005539b9060623ba39 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sunday, September 24, 2023, Skelton, Adam J <Adam.Skelton@fisglobal.com> wrote:

=C2=A0Does Postgres have problems with creati= on / changes to database schema objects when the database is actively being= used?


It doesn=E2=80=99t have pr= oblems.=C2=A0 It does require locks that can preclude active use of those t= able for selects and updates while the DDL is processing.=C2=A0 Whether tha= t is an issue for your application depends on the application.=C2=A0 And th= e duration required depending upon table size and the specific command.

David J.
=C2=A0
--0000000000005539b9060623ba39--