Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKtHr-00031T-1h for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Dec 2017 21:55:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKtHq-00084r-Ja for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Dec 2017 21:55:58 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eKtHq-00084h-8h for pgsql-hackers@lists.postgresql.org; Fri, 01 Dec 2017 21:55:58 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eKtHn-0008N6-NO for pgsql-hackers@postgresql.org; Fri, 01 Dec 2017 21:55:57 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id D9B0321C1D2A; Sat, 2 Dec 2017 00:55:53 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from localhost.localdomain (broadband-46-242-10-190.moscow.rt.ru [46.242.10.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 7D45D21C08CB; Sat, 2 Dec 2017 00:55:53 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1512165353; bh=75T1GCDtEbPnF69UlQf4BLIUg78VC3T1PormzaejSOc=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=DrejZh2MlIT//Ckw05Eulpkg9j6DW6eM3oYcNx+MxD6mIj8dI6Jm+RARfFPYFmy0h OO9vXATnoaKJU7Jb0vLe0XS03FOWe+v/hFXvUE+/CYU1SlLsb2YQTLEJa+HLUuIn4y BCCwFBhGmhAqcCWbGpuit3Hv14Yp852lMy/5sgOE= Date: Sat, 2 Dec 2017 00:55:52 +0300 From: Ildus Kurbangaliev To: Alvaro Herrera Cc: Tomas Vondra , pgsql-hackers@postgresql.org, Ildar Musin Subject: Re: [HACKERS] Custom compression methods Message-ID: <20171202005552.0aa06476@postgrespro.ru> In-Reply-To: <20171201193842.c47t6tyi72rhgdll@alvherre.pgsql> References: <6ac2d002-94a7-feab-301d-e790417b43a9@2ndquadrant.com> <20171201193842.c47t6tyi72rhgdll@alvherre.pgsql> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, 1 Dec 2017 16:38:42 -0300 Alvaro Herrera wrote: > > To me it makes sense to say "let's create this method which is for > data compression" (CREATE ACCESS METHOD hyperz TYPE COMPRESSION) > followed by either "let's use this new compression method for the > type tsvector" (ALTER TYPE tsvector SET COMPRESSION hyperz) or "let's > use this new compression method for the column tc" (ALTER TABLE ALTER > COLUMN tc SET COMPRESSION hyperz). > Hi, I think if CREATE ACCESS METHOD can be used for compression, then it could be nicer than CREATE COMPRESSION METHOD. I just don't know that compression could go as access method or not. Anyway it's easy to change syntax and I don't mind to do it, if it will be neccessary for the patch to be commited. -- ---- Regards, Ildus Kurbangaliev