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 1lKfA9-00020b-An for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Mar 2021 10:36:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lKfA7-0002Nl-Ui for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Mar 2021 10:36:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKfA7-0002KM-K2 for pgsql-hackers@lists.postgresql.org; Fri, 12 Mar 2021 10:36:55 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lKfA5-00076o-6J for pgsql-hackers@lists.postgresql.org; Fri, 12 Mar 2021 10:36:54 +0000 Received: by mail-il1-x132.google.com with SMTP id b5so2086333ilq.10 for ; Fri, 12 Mar 2021 02:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wNNGNxTWrSVjs1RLzgT5IIWWHTnlT3GrXttkiMu9iY4=; b=sJ/IDUVOarLQ53ahMZHM0n7fot6cLS9QxyPamMopMoI5dTKu5RbO1hn5UxMZ1RQq/2 VStYps6hRs2ik7wXzQZuoApx5Jm4u9tk63A1UL6/uCdPYOYMIgq9XLz++/g5qa9957Ux QVcpqFNm3OMvkRV3F71XKSckiQbcIF8dmA+/4gzgX/YJKifSgfKerdiW1V+L5jV+4NHG AW6IXfsgIjeEUxriseuiLaONY+bOf6PaJN74ogZ+vy5wx3b/w3ueZ9T7LvTBQIRdc6Hk 0zbqFkciqpzlLdR7MLec8+yOZrI03c79IIqrp4eDIOq52lmQWhPF7bYfkBmBUtDuvlLt rmqA== 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wNNGNxTWrSVjs1RLzgT5IIWWHTnlT3GrXttkiMu9iY4=; b=QbaOxnM6EwVU752O6YqX6PxlTvIQJ3GaEa0LWxapEbQMMrBvuMJNJ3UrSiYZGMqD0w iIS6BhJhfS6QARZjb/JCJjbMJb5fOLiTsI9XGjLQD0PY5WJvMS3KeN8q1aGujbD7oOLC Aa5+gvT+0MQwAkA5QF24fsdbNeahdhedL5SNeJ3nFlmw+Yh/3UXee8AV4FjJqHMwjlcr a/ZQvx5tXzAkALRgWy3A3aNbIUJCCchYniqiOa9myK6eCfL4CvY1C6JmI0PDdJHRGbUc zsWCiHR6pAxG9P2WRF4xj/ZdME2xvw95QxVBaBc6eJFtU3tYf/17LsKYSu6Ra13onwcw N8Lw== X-Gm-Message-State: AOAM532ziOxMlgNW9xotpgQtUIIh9N5NQchESVsH4tBtwrYFiMgzlT+N G6WsL9TQXmdYVvCXFf+mNrqMoQ== X-Google-Smtp-Source: ABdhPJzpt56/I3UYWKKQXsmjiHHn36jRxn/rMqoSa85ax9Lza0x6sKkPtQiKsIsuKjU3VfWuBDmoIw== X-Received: by 2002:a92:520b:: with SMTP id g11mr2190426ilb.7.1615545412500; Fri, 12 Mar 2021 02:36:52 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id b20sm2740180iod.22.2021.03.12.02.36.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Mar 2021 02:36:52 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 99338800928; Fri, 12 Mar 2021 04:36:50 -0600 (CST) Date: Fri, 12 Mar 2021 04:36:50 -0600 From: Justin Pryzby To: Dilip Kumar Cc: Robert Haas , Tomas Vondra , Alexander Korotkov , David Steele , Ildus Kurbangaliev , Dmitry Dolgov <9erthalion6@gmail.com>, pgsql-hackers@lists.postgresql.org Subject: Re: [HACKERS] Custom compression methods Message-ID: <20210312103650.GR8796@telsasoft.com> References: <20210306195751.GW29832@telsasoft.com> <20210311032057.GZ2021@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I think these names need to be more specific. +typedef enum CompressionId +{ + PGLZ_COMPRESSION_ID = 0, + LZ4_COMPRESSION_ID = 1 + CompressionId, PGLZ_COMPRESSION_ID, LZ4_COMPRESSION_ID are also being used by Andrey's WAL compression patch. I suggested he use a prefix, but your patch is also of limited scope (TOAST). -- Justin