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.89) (envelope-from ) id 1gomZr-0007fi-Rr for pgsql-committers@arkaria.postgresql.org; Wed, 30 Jan 2019 09:54:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gomZq-0005TH-HZ for pgsql-committers@arkaria.postgresql.org; Wed, 30 Jan 2019 09:54:38 +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 1gomZq-0005T8-9T for pgsql-committers@lists.postgresql.org; Wed, 30 Jan 2019 09:54:38 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gomZo-0000LU-FJ for pgsql-committers@lists.postgresql.org; Wed, 30 Jan 2019 09:54:37 +0000 Received: by mail-ed1-x541.google.com with SMTP id f23so18476752edb.3 for ; Wed, 30 Jan 2019 01:54:35 -0800 (PST) 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=WR9LJIHnlUqBdOaxek0ufffrbkIbHx3ZOEsz/419Mcc=; b=fRpYhuAEC23N8iM0hjTB8Sa51XY0kST5Uxz2vMVrGceB9jKHnBTDlbK8xulLhYTLQP qup1KNwF2inOMJx50GogvEeZdDuXpAlYtrko+7/NonMAIKfSIxQc0wcyJeyKM7nMTkOL QEaxFfdt/VcffxQWIXbOoTLRCODRDIhkpcANXE+LLhZBu1KeoPOut20VTda0rsrpKsyN r0N0ekzWqE7MQS5GXK9Ad0M9liCuLxzgrwh7HjcTfHJ5BN1GXZ2Sw1oD1JAYPRb2tBXS 6Qh/Df6RHJrOSyuDrJ/deQbq/LktwNydVg33Y+GnL2wwpwJTq5BHqZdyYgbWoMAiVXax 0lhw== 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=WR9LJIHnlUqBdOaxek0ufffrbkIbHx3ZOEsz/419Mcc=; b=RUOJm9yRSd7SqiBI4sH4MOwbpNUa0nCcXSlcd2kgRcXdE5y94GYO5tC69lq+2xQ20S 71dNk1jNyWW+1PzfvvSfZ7l48tKGSjlNo9/QOAvGGJAcKMQrCCueK7gIuwimV5Zi28P6 qohC8LmD75x6z0jXgZRrk6Ws6fml2PifApvc9cmVt7KKqJ1YwHgwH9+qdSC1cRUth4Ca ugAiXH+8AdYqD6/uS9FI0aC9YIWGI57q7KlD9ChUuS2bXXsguYGP4gCxmmLR5YYPJBTG V+VhCInOqr2WCRZubZsEr37KLzuUHkIlcW5neT7Gb6YIcVvyniSoMS5I+iu0Gb9m0qB4 yRUQ== X-Gm-Message-State: AJcUukcCg2Xb/Ym2mHIgUqirsFs2FSimnwsFb78hyi0vFdfQ2ADsYQEc zCMJcA/RP9sKn9ch4VLORc5EMYV+b7w= X-Google-Smtp-Source: ALg8bN7wIQ3YvWWlyUmeLjepHJeCl5pP+sMIBflGZm37k/myXCRs+5WsmPE+Qx8WwzFAUGfhqhKCmQ== X-Received: by 2002:a50:f5b0:: with SMTP id u45mr29577774edm.45.1548842075331; Wed, 30 Jan 2019 01:54:35 -0800 (PST) Received: from alvin.alvh.no-ip.org ([212.76.254.98]) by smtp.gmail.com with ESMTPSA id f35sm377376edd.80.2019.01.30.01.54.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 01:54:34 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id E72862B7; Wed, 30 Jan 2019 06:54:33 -0300 (-03) Date: Wed, 30 Jan 2019 06:54:33 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix a crash in logical replication Message-ID: <201901300954.7jrbodhjkgmm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716-1013-2c1e88 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jan-30, Peter Eisentraut wrote: > Fix a crash in logical replication > > The bug was that determining which columns are part of the replica > identity index using RelationGetIndexAttrBitmap() would run > eval_const_expressions() on index expressions and predicates across > all indexes of the table, which in turn might require a snapshot, but > there wasn't one set, so it crashes. There were actually two separate > bugs, one on the publisher and one on the subscriber. The intention is to backpatch this fix all the way back to 9.4, right? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services