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.96) (envelope-from ) id 1wVZXO-0023VY-1X for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2026 18:44:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVZXM-00DpkR-1w for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2026 18:44:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wVZXM-00DpkJ-0r for pgsql-hackers@lists.postgresql.org; Fri, 05 Jun 2026 18:44:56 +0000 Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wVZXJ-00000001TJa-4AeJ for pgsql-hackers@lists.postgresql.org; Fri, 05 Jun 2026 18:44:56 +0000 Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-7dc67a5e102so24236917b3.1 for ; Fri, 05 Jun 2026 11:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780685092; cv=none; d=google.com; s=arc-20240605; b=DhX7EtkIvB083cYblCTXsQeut2+f5xfRyQWIJF9XSisAD8RRYv7xEN/uPIWsAHzqFT qGEZt5sfyqRnPn3liZyW5kTdHHLH3bJqhtSKOBYgzfuQdWe+4GXG+vmI/1X5Ix6RBHVY nWVl75S1mGNJYqar0mrHw2nbWJNaNKoRT5sZZiGFBEwO+bI5DdQyzctZaJubWEwV4D2V bCl3xunQxav5qWrQrAJpjJRX/QYran1ruROvcP3hpDkz6CYHFwzVoOxdUjMVKzoz5+Zx VzN9NcaTbCTdum4U++98TYKqdeqj0ep0/3GKx6Mo8hT5p67zsDV+Akq86hgehcKb7nkb zRfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :dkim-signature; bh=g1KyXVKnWF1cPHkoindDThzRILSh+sgdr+AM3tIJB48=; fh=nwNxTtLLPTU0ewfLM7SSbrjMajMl+wwnFkCY/fi90vE=; b=YruZByGo3l4GZ4RaPhi0jwE50/Iq2GL1heWAzuFKPb7DDoxmabiuhBUYT/CREDITgl erg9XySkp52cXLfv6c8V6TLDjmkuO/HCGQwyPvRiz5ishfpipMdIgEsSJ6LKkErA4jsK XEVspM1hNiwn1DUfe4NoNLOX7W5JBUL2dRPVVSqEiEPLiQsv3BLoMCpHHAwmnXdX0MwS 9luiD5PmQUj4C24wgPs5Rv0Wt1EZZ5D5qbtfWbTMhx9Wrm3dhIPZ68UqnSBlScvNvLpq 947ScgQw5qB9SKjUo5p8RnIb8KVgruSfJSZVJHmboeTX4goOaKQo57VMK19RfxwgfNwJ qHHg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=percona.com; s=google; t=1780685092; x=1781289892; darn=lists.postgresql.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=g1KyXVKnWF1cPHkoindDThzRILSh+sgdr+AM3tIJB48=; b=B7yDO0vfLatBP23at262riffuFf7Ck+LWpgV2smBvj4bFX0H4FyDRKU6ADsQTDE9Mr tbrtXmCv3avEX18KNsKc2tcoulHneuQFI6kMLCGIP1DrhnlvRswAVITsBplfcI4VvWaR capm5zg2R5fKiyl/HLLyuWonzGztwKI88lA2s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780685092; x=1781289892; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=g1KyXVKnWF1cPHkoindDThzRILSh+sgdr+AM3tIJB48=; b=nUL74xpw93LwSTTVDGyc1zRZhar2loXwIbYt9gz6aN/AvNNqr2hbB+gk5Wf9w2+spy 9KXOOMMm8Vh2b613nPS6I/ZPMdokuVymCOFbMIj01MkpE/5sXLeupE457RG+lsa6RkM0 INy3hESbTR13YWJIeQFohJDAc816IlqWLw2CGkPdQqBvDq4DLanW3Elw+pzT2GeKpvqh /gps8ha6scukxPHwRHkwcEzwD4pythGe4hDs+pCs5dFAXH9gXmXfhmuA5KY61I+GTEVl TJln397q1+STNMyftNZEffOH+LAX/XvI/xgS/aH0TsI6haahmasdzjAQO0V+0YDa8afk i4eA== X-Gm-Message-State: AOJu0YzS74P9NZ8EN9aicYVmiBbKyOO5RdfWYc9EvfphsRkzZnUBPpZo m5+z3H+i2BVF6eQ3B1KmL8DI56pGAbC9Ua5tuAzM6SPj2dBMQnSdfLzAZTC/OOfJM8ZzDhtdfLb Z78Ckgy/3p0SXcVxHp9fxAgtZDM4PoTg1A1ZrlZ3Flf/hLfQjGQEF8qIUHnj/PBVdoq7PLYvPmd m6cbed33zGx0gJ082dttWKJLC4tr9pw0LBc7wvDtd8D0G6rD3947/6gkmzKBpEbSnyZwyGL+aJo yHv+d8jiG/TrRCeZIcP5LtHwddl+4/AE64Tamw8ya3Ww3lyupXO/+8kF423O4dC9xAMzKPDgTCZ xg== X-Gm-Gg: Acq92OGTY/Bj1siu6tqTpJkX5cxo4QKg8NTmFUNGmY2qOHG1/8B+DZ5sCtUvlpPkbEN lDt8PdecwFkVq3WF1UjWsfGzPTgWMs5UNPYbKGBjVNo9eRERe1uYK4jeHGotcskzLyne8RNeuMb dNLYBkYBzAFQTPwJucbx6UQw71Xwwg+vPC/9SRI99g80BJk7YNPXCISakqX2SPk4g7yAfPfFd9K GOG04jrqWyKK+PlwMTtv3wCUXXSexoD56AVNZxUsVT7MrY7d4O4xzFAxvIbnWDfG9sptgVwDj8g AGEOzOI7V5JLNHSNHpZLe1y4fA9kqig4iOph0McSE8pQyPDEdPJtb6ZHdODtoCfcQA28LMPsOND h+I0= X-Received: by 2002:a05:690c:4512:b0:7e2:15af:2878 with SMTP id 00721157ae682-7ed0f72f198mr48760387b3.40.1780685092105; Fri, 05 Jun 2026 11:44:52 -0700 (PDT) Received: from 298783833264 named unknown by gmailapi.google.com with HTTPREST; Fri, 5 Jun 2026 11:44:51 -0700 Received: from 298783833264 named unknown by gmailapi.google.com with HTTPREST; Fri, 5 Jun 2026 11:44:51 -0700 From: Zsolt Parragi In-Reply-To: <684DCC2F-5982-4A5D-93F9-BD640B58B4BB@gmail.com> References: <33E9C4C2-B6A8-4FCC-BEEA-461EA5FB98C8@gmail.com> <7F0EA98A-6DBC-436A-8FF4-4A511A05ABE6@gmail.com> <7B7172F4-DB02-4259-997B-6AEF5ADF7FCE@gmail.com> <14E223D8-8425-446A-A36C-6B62BC334656@gmail.com> <9A3D388C-1DF4-4C43-9AB6-83529A8F48C8@gmail.com> <92CAD935-5ECE-46D8-B7D7-D8E3C991CC10@gmail.com> <684DCC2F-5982-4A5D-93F9-BD640B58B4BB@gmail.com> MIME-Version: 1.0 Date: Fri, 5 Jun 2026 11:44:51 -0700 X-Gm-Features: AVVi8CdO1248qaNPk9u6zuh74jadtxo1E5oUwc9_lL0DCCmE-i2bo2ut1fFpOYU Message-ID: Subject: Re: Fix bug of CHECK constraint enforceability recursion To: pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" X-CLOUD-SEC-AV-Sent: true X-CLOUD-SEC-AV-Info: percona,google_mail,monitor X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > * It is common for a partitioned table to have thousands of partitions, but I rarely hear of a regular inherited table having thousands of descendants. Yes, that's why I also wasn't sure if it's needed or not, I can construct scenarios where alters take a relatively long time, but those do not seem to be realistic at all... so maybe it's an acceptable limitation as you said. > BTW, do you have any comments on the doc changes in 0002 and 0003? + (check and not-null constraints) down the inheritance hierarchy. With + multiple inheritance, if a column or constraint is inherited from more + than one parent, the stricter definition applies. The documentation changes generally look good to me, but should this statement be part of the alter table description? There's a paragraph about merge rules above which might be a better fit for it. ("Inheritable check constraints and not-null constraints are merged in a similar fashion")