Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fe6Mi-0004nX-5h for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jul 2018 22:16: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 1fe6Mg-00012T-K6 for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jul 2018 22:16:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fe6Mg-00012L-5s for pgsql-hackers@lists.postgresql.org; Fri, 13 Jul 2018 22:16:38 +0000 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fe6Md-0003AQ-0v for pgsql-hackers@lists.postgresql.org; Fri, 13 Jul 2018 22:16:36 +0000 Received: by mail-qt0-x243.google.com with SMTP id e19-v6so14248782qtp.8 for ; Fri, 13 Jul 2018 15:16:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=/5nenLYYwBvEEB1GBf8cRqptksDX21LLVazjnS4hHNs=; b=lePy9w2PbJPhT8BohT16+OGeBQXSExBwmy2/Lg0RTo0i/fOdjJdEGnlsunmv7JdH6w sOqfsjqJEzVdI/amp7m6kmC6UXP2k7Eei6MyE8t2B7QQ1NAGoRw5EZ/TLMmeqjKkcjk4 a1tEQiDysB1B0oIqGenn7TfqdwD6QX8KF7YrtSFQPNyXFDHH4iPL3ME/+bQci476zV01 oEmqzwewCzwkjbUyET0k/sV5tP3HHfgv9JoNAm4QjNyxMhmPvEo25/obs1liKJlcdn7l 0d21dfRzqDGOqrd/8WZYMxnMOJmfRbWM4gUvD5oh5skYyHDejF0PB6pVD09qGd2N0/Af EWSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=/5nenLYYwBvEEB1GBf8cRqptksDX21LLVazjnS4hHNs=; b=Xl+Fpwv0gHx6aKKv3C7DNUzxJrcdBEm6beEcT4PwhG1UmDrj8XeuUrJtdKlwc7Nsob Fj2VSs+H//o7vGBt3fbOE/4ZJpR8mse8lGoyswHDwdXx3FfFJkdNPoU+0s/rdZ5+AzbH 2tJHnXtvZ67H0NNsvJCtY0wQxz1k1jAEv2jSPUDCVktrjPX7IEW03U8uHL1wAUcnG7g0 E/cikvVu7ePOWgm5NX4R2sSEQU7STOk0sMlT+HnwlUiqRcNPigFE7mhGP+AbfV/9gxOP xSrUbr11IV8miXfsN/bff5NgakYw1fZOfTlZqKbfAidwRdZrLmWS0SNRg7A6R5Uvc6CD exFg== X-Gm-Message-State: AOUpUlHtRM64fvZklCKaTCFG2YWJHv4hT4cbpOy0aSwN5a9zjRt3b/9z n3dDmzowf+aO7zoTtr96lQXrVQPuK2n0ZpiGp0L4kfmNWSXvzMqi19hJ38nLyxsv5/eKjGQmFKn ylhI85KlLxbV2M+NETd68CE9QFHtrslks3C1raAXa7Y7lkm99zdoqvOu31yYZ1A8QDv/ssgt3z6 melSHHaM6Tj7roLQ9emYQ7 X-Google-Smtp-Source: AAOMgpeeqx0MX3YbxpRMi35iA5KpdxV5UPF7TB/uJq0fbnvJAYqkSOMAlWN4YE995Q4CLX4jGS00xA== X-Received: by 2002:a0c:d24d:: with SMTP id o13-v6mr8790988qvh.210.1531520194068; Fri, 13 Jul 2018 15:16:34 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id l84-v6sm21769745qki.69.2018.07.13.15.16.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jul 2018 15:16:33 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: cannot restore schema with is not distinct from on hstore since PG 9.6.8 To: Tom Lane , "David G. Johnston" Cc: Marc Cousin , PostgreSQL Hackers References: <15487.1531150466@sss.pgh.pa.us> <10492.1531515255@sss.pgh.pa.us> <13033.1531517020@sss.pgh.pa.us> Message-ID: <59f8f5e3-2b2d-36c4-c5bd-9e3606cd008b@2ndQuadrant.com> Date: Fri, 13 Jul 2018 18:16:32 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <13033.1531517020@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/13/2018 05:23 PM, Tom Lane wrote: > "David G. Johnston" writes: >> I think serious consideration needs to be given to ways to allow the user >> of pg_dump/pg_restore to choose the prior, less secure, mode of operation​. >> IMO the risk surface presented to support back-patching the behavioral >> changes was not severe enough to do so in the first place. I'm presuming >> undoing the back-patch will be shot down without mercy but at least >> consider an escape hatch for unafflicted secure systems that just happen to >> depend on search_path more than a super-hardened system would. > FWIW, in the security team's discussions of CVE-2018-1058, I argued > strenuously in favor of providing a way to run pg_dump/pg_restore with > the system's default search_path as before. I lost the argument; > but maybe the need for features like this shows that we are not really > ready to insist on unconditional security there. > > I don't remember that, TBH. Certainly this problem seems nasty enough that we should possibly revisit the issue. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services