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 1hztsL-0001DZ-7p for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 02:27:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hztsJ-0007JE-DJ for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 02:27:55 +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 1hztsJ-0007Fg-14 for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 02:27:55 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hztsB-0006Vj-GC for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 02:27:54 +0000 Received: by mail-ed1-x535.google.com with SMTP id m44so4422134edd.9 for ; Mon, 19 Aug 2019 19:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=YbPkLmx9jEGU2vdHe12r9cwMzKyvzaL1KSWioPb2o4U=; b=BX8CqZNTkMEs99Dffljk0NTNjDk5rwXU6+WbeEG+1Gk0Yk4P4Wps6i6ydw78yM5ZYi 4rJZm3IKBelRN5Af1W5xdWLvc0DyxPei4xKQs4CInYc56dmiO61s2Pgs9e1x9w/C6sOQ 3xiqtTJsicryD0xsfB/L1YK7uw8Eo9B2a0d+3vUXBgOcWDHYLZfdVYX/p5n9sWWhX/8W 0u8+3gj1Ie69zvcObt+za829rZvLMiNG3rG3c0slDNc7LwdHJHohlRm/7c1BLO7wzpYr HWhTrGo+7DvFlAwckqSKOWlhJaTN8bmGSAwx8gltwD1IBt+jlyaXeSYYRC42s9pDy9Hu 1jRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=YbPkLmx9jEGU2vdHe12r9cwMzKyvzaL1KSWioPb2o4U=; b=JpX7dTUNfshQ0qXyl9Td36sLpXy6cDqfP/KpEuXJPOLg4AkjTd3Acvoo9pjeAro2/p rFSz6gkw8wMyPr67Mj9Gny10vF1qG0Tis7mswd3vlaDvIgpnrNUcyqw3+iQLDl0khO2F RWcNkjvPktXZ0l69Id7WeKz8x41tfjrmenULe3L9hQO6b2Hd+LVCVoTHisWCm9g3kM17 NMdKgekAikwYUGawkoJE0gd5Xf7J3gCzCSOvleWes2OJJ5r7l/R5csdkCP3iOJ1BfHEe CZdBlmhIABD4CfMjctsp0MdSjNlodyOyB51n3YPvMhBd9pXnhfttSBDdCFaDIZE2kIxE IpWw== X-Gm-Message-State: APjAAAUPK28UTY4Z6mA09JZd3kkioMy95rHQh0SYSE0KOnG7oyej4sqw y7jgCg/ZYuyPn0RKax8oVjP42WJrVbbWkb8zSREhmNBkgjymwS8FCwhj1nrsYEd+KoMwFmwiMvd TE/P+pWxQflHy3+WcB3Fop1uAWuRuPbMGSoNqx2EZGL4KgE341jTq68mLovjT57JqaOsDCxofib etjfYEHQQ4c5O/cA27Phqf X-Google-Smtp-Source: APXvYqwe23zJ7gBfCSEkyC57X8+DFD9YRLjb7gM5oXUmLXdL4/+XnKZerqyl6slmd6z4Q4vmeDU5aQ== X-Received: by 2002:aa7:c611:: with SMTP id h17mr28014015edq.75.1566268066085; Mon, 19 Aug 2019 19:27:46 -0700 (PDT) Received: from [10.8.8.7] ([185.94.189.190]) by smtp.gmail.com with ESMTPSA id br8sm2350184ejb.92.2019.08.19.19.27.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Aug 2019 19:27:45 -0700 (PDT) Subject: Re: Retroactively adding send and recv functions to a type? To: Tom Lane , Johann 'Myrkraverk' Oskarsson Cc: pgsql-general@lists.postgresql.org References: <23029.1566235939@sss.pgh.pa.us> From: Vik Fearing Message-ID: <64b6e379-a234-e515-59f9-db025a848831@2ndquadrant.com> Date: Tue, 20 Aug 2019 04:27:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <23029.1566235939@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 19/08/2019 19:32, Tom Lane wrote: > "Johann 'Myrkraverk' Oskarsson" writes: >> I meant ALTER TYPE. Adding the send and recv functions doesn't seem >> to supported by ALTER TYPE. >> Is there a workaround for this? > You could manually update the pg_type row, and then if you were > being fussy, add pg_depend entries showing the type depends on > the functions. We generally discourage updating the catalogs directly.  This was why I wrote the CREATE/ALTER DATABASE patch in 2014 that you helped me with (fbb1d7d73f8). I'm willing to work on a patch for ALTER TYPE if it has a chance of being accepted. -- Vik Fearing