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 1l1prk-0001Gx-NH for pgsql-admin@arkaria.postgresql.org; Tue, 19 Jan 2021 12:12:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1prj-0000fJ-Hm for pgsql-admin@arkaria.postgresql.org; Tue, 19 Jan 2021 12:12:07 +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 1l1prj-0000fC-AQ for pgsql-admin@lists.postgresql.org; Tue, 19 Jan 2021 12:12:07 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1prh-0005KX-L7 for pgsql-admin@postgresql.org; Tue, 19 Jan 2021 12:12:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3whnIIulpEj7RLJ3VgiKGEhqU8tkMXUfsp+fPedrQlQ=; b=ixuPmv20mw9jzo5GK+B9jtZ9Fl xqJkbW/eqyh/kMJyrrzxDHgXSe7XgKYTq3ZBelfIIkHLOkF+mrLVUgGiJDr2F3b+1RQAaDPiRUekf SaxUYxdZiBYQSwMNp2HTjurOmMzgwlZ0BT1vUb7uUKdox5wNSoFwieJ1wIX5mreek67g=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1l1prg-0005wG-IJ; Tue, 19 Jan 2021 13:12:04 +0100 Date: Tue, 19 Jan 2021 13:12:04 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Anjul Tyagi Cc: pgsql-admin Subject: Re: Table Partitioning Message-ID: <20210119121204.GB13372@depesz.com> Reply-To: depesz@depesz.com References: <20210119114246.GA13372@depesz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jan 19, 2021 at 12:01:12PM +0000, Anjul Tyagi wrote: > Can we handle that in DB side with trigger? I don't think so. At least not easily. You could make a function to do so, though. Best regards, depesz