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 1jfqU8-000481-Jq for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Jun 2020 19:52:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jfqU7-0003fJ-AO for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Jun 2020 19:52:35 +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 1jfqU6-0003fC-Vy for pgsql-bugs@lists.postgresql.org; Mon, 01 Jun 2020 19:52:35 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jfqU2-0002S5-TJ for pgsql-bugs@lists.postgresql.org; Mon, 01 Jun 2020 19:52:34 +0000 Received: by mail-qk1-x743.google.com with SMTP id c14so9271087qka.11 for ; Mon, 01 Jun 2020 12:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=lHOmtAJlqJgvf19doxJGrXvfOT7P8LwZdou3oKlAVdg=; b=fwZSEj2+rH2BWfwUXDpFuKxOXyHkn0M5WZA3M9Yi8XubLHLgS8p5/TdBcVb6H+Jh/o UdSMnw7AlSNTzMPCsrXWi/6WptFBX2gpCJrLO/O8ndRiYUafXuc4aXeVzKrQzm3a8INq d1q5vHJy4I5IDp1Fk8hmEdU9j+RM5X6A/JuBT5X5Tc/pJfQC7gXZWsJvdUTpJfQ3PUhM V2OeVmAYUuKwQLYRJuBAs2EzKl04K59afV1UK3Eq81a/eNDoX1gdap8zjPiP9pTCxQZ4 TZU3HHM+5NB4q7LnKtOco+hr4fRrRlM46Y0Y/BjxujM95SHJqZoEtvXD1w9zMxU3T9K8 irGw== 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:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=lHOmtAJlqJgvf19doxJGrXvfOT7P8LwZdou3oKlAVdg=; b=M2Pjl3CQRajbLiop0Mkcr0yIM0AeFbHyvAoCD+U4FWrSTcavmWXsFSnU4K9uby5le6 bSizCEG70vkuHDBGFeGadzq5iI/kpOHO3Mic/FeRs+aD9PDLiEpm58GFoCjS3BloYpwJ Au0ryKPKkNqEOYrf3nFILJeMaCHhxqTvHqRj+K/SmlFd3sQB2kpsdtDhbYHnN2HzBxHg hegiocUr6/0PftY5VJWtcKAttMmCzfV7i7O9QpNzpKDKRf4DXC4OvpojcIECF/GBIS9d FBx5lRP32HrAA3zCS56LxK0iUTAuHoIynv63WRyQpHsGhSPTAtZglVqHIF3C8M0ePBOD IkCQ== X-Gm-Message-State: AOAM531VWZqRz4tRJNbpD0AzEyPTpeGEtG/cKXO/TektJhP1Ev31olvn UQ2rYvnbFg3znc7db5RFpBbUU6qNeLkIGgayJFmmuBwPSV1QG5QB8Cw8xbrdr+dQPHIRfGXFKXL 7ipS0XGRCqgNLdOwTc8I8/+6gzc8xqFdy1cgBdEtFzAdrvpwSjrPmI+TBT8xb5SVrlYZx6FT1Vi ekQtJZdOfDbsb4 X-Google-Smtp-Source: ABdhPJw9HXusTiILmyDFvenqkBSk1XFBg7vmN9heLF84+1ER5W5fd7lG2jMDfY1SMd1y1kMvZlB+rg== X-Received: by 2002:a37:655:: with SMTP id 82mr20593611qkg.77.1591041149240; Mon, 01 Jun 2020 12:52:29 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id q207sm226272qke.55.2020.06.01.12.52.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 12:52:28 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 7D9AC3006E5; Mon, 1 Jun 2020 15:52:26 -0400 (-04) Date: Mon, 1 Jun 2020 15:52:26 -0400 From: Alvaro Herrera To: d.a.ignatyev@yandex.ru, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16474: Foreign key issue Message-ID: <20200601195226.GA5433@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <16474-03a567470736cd26@postgresql.org> 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-Jun-01, PG Bug reporting form wrote: > select source from shelf.r_source where source = 'PPDM39RNEX' \gset This one in the initial post says shelf.r_source, the other that you pasted complete tables says ppdm.r_source. Are you querying the correct table? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services