Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiIWH-0003z2-Gi for pgadmin-hackers@arkaria.postgresql.org; Tue, 22 Mar 2016 09:22:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aiIWH-0003G0-3W for pgadmin-hackers@arkaria.postgresql.org; Tue, 22 Mar 2016 09:22:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aiIWG-0003Fr-Lx for pgadmin-hackers@postgresql.org; Tue, 22 Mar 2016 09:22:32 +0000 Received: from mail-ig0-x22d.google.com ([2607:f8b0:4001:c05::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aiIWE-0005Mf-6C for pgadmin-hackers@postgresql.org; Tue, 22 Mar 2016 09:22:31 +0000 Received: by mail-ig0-x22d.google.com with SMTP id cl4so51088419igb.0 for ; Tue, 22 Mar 2016 02:22:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=Nqh1v2kDKpWq0wNUT9CB7+1DqLtKzm4+0eK9inHNiKQ=; b=MgG9L7KCuFzpf1MWj7ViqN6FEJF5Lc1XIJ6clZXio4sQ0NgT/y7nN8Ivc+I6CmDi6p /8b0QZA1NH5b5qXAhKwr6bCx/oKxcnBTSWPdrQ5zJ7KQua+3qEiUflrS8+VBJFq76q55 abiv4nYhvunwZmKTlLtUBryglvBcD+SGJBBjRwAjwkAM65Hui0hx/dR5RYPCngemVqls HSYGoLlJQbJhQP5v75toYZT7A9H2wGUO5KkPvuOKYltVweVOAtMMPasp8qDA0CRVgpS9 Fv6Of2c2lt3aglMaqwItFacbF//w5pro8RF99lrUob9QS18zLJxO2BnY5khGLS89oGFi f5AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Nqh1v2kDKpWq0wNUT9CB7+1DqLtKzm4+0eK9inHNiKQ=; b=NHshpzTtY8i8DHZ36MKa7SJzt5JHAG01jINJi5pZV84uT8xYonBAiX2WY1Mmz2hPhP n/lMuQ6e8AMD4PRrWM7HvDbQgeYhCWwr2H+5PM8Vuci3gpOtYwoXTPCtoNAzYaK+vp/u 3PMQ1J/XsFRKwAfxr1MKAu4FVMw3JRRecX9pMaUBrnNBniVJLRoxnPJhlpTp7wpVpjxf RGGDEUxe7DXHkn98Qfufsg2WoZEbSeVge6y3vKP4UXQPjGV0Fq9RRUeeAEppFBKpuiXV IynjpBeM8UTiEq2EadCN/dGBv+hsRSkfg0lYB3+wtpRKUsC/KfWkWPCJwbKEzJELqicB XQqA== X-Gm-Message-State: AD7BkJJH2TIGaNL4//tBDGnIosViqFzzoes7SUaKENHpqj7YeYbvSNYLqrgy5EJUO3kF7J3bK5Y/vzUs2aJvjg== MIME-Version: 1.0 X-Received: by 10.50.43.194 with SMTP id y2mr16854749igl.96.1458638549447; Tue, 22 Mar 2016 02:22:29 -0700 (PDT) Received: by 10.64.24.175 with HTTP; Tue, 22 Mar 2016 02:22:29 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Mar 2016 09:22:29 +0000 Message-ID: Subject: Re: PATCH: Added Node Type & Catalog objects [pgAdmin4] From: Dave Page To: Murtuza Zabuawala Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi On Tue, Mar 22, 2016 at 8:14 AM, Murtuza Zabuawala wrote: > Hi Dave, > > We can create new external type using below method, By running all of below > queries at the same time , we can not create separate external type by only > using create type statement. > > So as per my discussion with Ashesh, We should not allow user to create > external type in pgAdmin4 but only show definition in edit mode. Hmm, would it not make sense to allow the user to create the shell type as well (perhaps, with a new type of "SHELL")? Then they could do what is needed (and that should be easy, as it's just CREATE TYPE foo;) For example: CREATE TYPE box; CREATE FUNCTION my_box_in_function(cstring) RETURNS box AS ... ; CREATE FUNCTION my_box_out_function(box) RETURNS cstring AS ... ; CREATE TYPE box ( INTERNALLENGTH = 16, INPUT = my_box_in_function, OUTPUT = my_box_out_function ); CREATE TABLE myboxes ( id integer, description box ); -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers