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 1hGukf-00047k-DW for pgsql-general@arkaria.postgresql.org; Thu, 18 Apr 2019 00:18:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGukb-0005iI-W5 for pgsql-general@arkaria.postgresql.org; Thu, 18 Apr 2019 00:18:01 +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 1hGuka-0005i7-2P for pgsql-general@lists.postgresql.org; Thu, 18 Apr 2019 00:18:01 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGukR-00030m-Bq for pgsql-general@lists.postgresql.org; Thu, 18 Apr 2019 00:17:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 502C721E97; Wed, 17 Apr 2019 20:17:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 17 Apr 2019 20:17:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=H I+k17vd9lod0VGlzyYAwEuTkOU3fRLAO2fpi9QtgIE=; b=lvutHYvT3BNB9T2fM zmA9oh12p7W0zzqb4FB59SoSU/qJbxTZbV3mStSLVm6u/1Q1tu1CYkI+qbzNjvv7 K4fTHBe6ZMHEheXhOhjxhnzwqh5KLQPJLJ0qK8GmzJ6UPJDkwiZN7qMZ2qM4kfdV lVDkIPblAJem6TMQ7BORQBs4LnvKlMphJ5aIwQxi4Q+XYHgw5hlzeHe6sV94mbxa HUtZ1++fkrfepE96jlOKJlYTwpklQOz53/Eigjo1X7PBqiT1v3K7E082bI6c49V1 D05A3v+UK0c7yNaN5e6MT87UHJr4Ds9sJKnU00Rf774qx6IMztoIUmz4J+O6VlJ/ ruyXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=HI+k17vd9lod0VGlzyYAwEuTkOU3fRLAO2fpi9Qtg IE=; b=KF5tkPI4HTHppqUQ6pYGPwsIXkUD3MMBpwx++Fx+Z4zk3IQNZC2Xb9ZID 20cm9B3ZgLBisZw1uuIVaRYIy34fYa4XzC52g0iL/JZcqVhHoJp4npZKyCsAbZEi ElxP5Two40osAEYPd+uOx4LEeU+k4izY1VqhSjm3IJjk36CUG+5AIK5z68oD+J/9 Ooz5zZNccGJeZ0PBBOSYeibsXV+j1aNuFDCBqnh0yvI+fZFg22LawSr1hGyIEMXl a3XE0tefR4s9L1lcNmYbjVDwtPtcgopq8WOe+Uzc2PtsSHZgUC2wNYxgUN5bQXxl PGyoAPkVBmroPL69Ue8n7OM3J3HsQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrfeeggdeftdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 74C54103CA; Wed, 17 Apr 2019 20:17:47 -0400 (EDT) Subject: Re: is it possible to create partitioned tables using tables from different schemas To: Alvaro Herrera , pabloa98 Cc: pgsql-general@lists.postgresql.org References: <20190417225648.GA2004@alvherre.pgsql> From: Adrian Klaver Message-ID: Date: Wed, 17 Apr 2019 17:17:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190417225648.GA2004@alvherre.pgsql> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/17/19 3:56 PM, Alvaro Herrera wrote: > Note that unless you regularly query for only-manually-inserted or > only-automatically-inserted data, this will be useless and will make > queries more expensive, with no upside. Well the OP's use case is: "I would like to store in that table manually generated information. Since those rows are inserted by hand, they will be lost when the table will be reimported." This got me to thinking an INSERT trigger would work also. > > Generally speaking, it's not a problem to put partitions in different > schemas. > -- Adrian Klaver adrian.klaver@aklaver.com