Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5NNg-0008V6-KU for pgadmin-hackers@arkaria.postgresql.org; Wed, 25 May 2016 01:13:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5NNg-0002kc-6I for pgadmin-hackers@arkaria.postgresql.org; Wed, 25 May 2016 01:13:04 +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 1b5NNf-0002kU-Nv for pgadmin-hackers@postgresql.org; Wed, 25 May 2016 01:13:03 +0000 Received: from mail-vk0-x243.google.com ([2607:f8b0:400c:c05::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b5NNc-0001OA-Ou for pgadmin-hackers@postgresql.org; Wed, 25 May 2016 01:13:02 +0000 Received: by mail-vk0-x243.google.com with SMTP id e126so5632816vkb.2 for ; Tue, 24 May 2016 18:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=9dwclSEuoQ86LcRQOoH+nLmlI9mF3rxdx2SLTxYsKto=; b=WOMQtoR7ag99dR7TEqv2ujIk7PSMHh2CdhoKLnfajzSUF9XZzMODEYBs7K6KTFqtxu 6NgeCePxC7MopEcYh3XUsrTeG8756kpaGkUdcdCdamSlIzBVHFF8nW2D9CvCoVWSl9ul tj26XiKLXT6+JbzecomJKfH/jtIiO+opjBgIJkelklds8d84DW4t167OlBDDtgf8rADv IseG5bjDqEkDaJ7S6UTrDtGvEEZ8H5mC362V0+EGrDtsT5TEGgyOLsXTJPIsu7UHAtiV 3MOB8rzYlgrgdH21dXLWL/WHHT5oOAddLL9G3qosgXkTEUm1/qhmKNCpxqxQ9YlSNUSO rusg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=9dwclSEuoQ86LcRQOoH+nLmlI9mF3rxdx2SLTxYsKto=; b=bVpHVlb7wKcDmtrcCPKMQ/XjHG6EhZSDJOYk/lXb/rwRP8kG+cGWdPvjo52Ch05mB2 5pxMMUFZCQtA+c9ZdHfW8isiU37N+LFtEJuoZ3kFvF+PGGrF72+CEO0szr6YcqE1QzzQ JgZDZFP7VJohUqz3ojFluz2uy8JOU94kSQcf+92uq2w9I0kHFkqf7mDZbwQLS8zrdJnC 6txBt0merKMuoZVtBtt+P2MjSlblL4w+GWDeLrxV/7vmwTL5P3LK62d0Cb/aJ09CLdlq 8W6i8iE6DpPBFTjS3EdXvePshmzkPicUE7SR8Ppm65totZ6gNyso4vy1WBRVQtkFo8HQ h/3g== X-Gm-Message-State: ALyK8tISnY3HtGL58KRV9UQPnPguoogi3Kdbr7l5yqqMxvO1Rgspga/RwnOfkoPMf5eV9tm05azOs/MDFr9cpQ== X-Received: by 10.176.65.1 with SMTP id j1mr759953uad.112.1464138779560; Tue, 24 May 2016 18:12:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.2.239 with HTTP; Tue, 24 May 2016 18:12:29 -0700 (PDT) In-Reply-To: References: From: Thom Brown Date: Wed, 25 May 2016 02:12:29 +0100 X-Google-Sender-Auth: PYntXawm05TuvIzgVfI1GH16J4s Message-ID: Subject: Re: [PATCH] Tables node (pgAdmin4) To: Ashesh Vashi Cc: Murtuza Zabuawala , Dave Page , Akshay Joshi , Harshal Dhumal , pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.4 (--) 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 On 25 May 2016 at 02:00, Thom Brown wrote: > On 25 May 2016 at 00:29, Thom Brown wrote: >> On 24 May 2016 at 19:09, Ashesh Vashi wrote: >>> >>> On Mon, May 23, 2016 at 6:35 PM, Murtuza Zabuawala >>> wrote: >>>> >>>> Hi, >>>> >>>> PFA patch, which will fixes below mentioned issues, >>> >>> Committed. >> >> >> In the Create Table dialog, on the Advanced tab, the "Of type" drop-down >> lists tables and composite types, but those are supposed to just be >> composite types. >> >> Also, when using OF in CREATE TABLE, LIKE is no longer valid, so LIKE should >> be disabled when using OF. Also, there should probably be a way of setting >> options for the columns taken from the composite type. For example: >> >> CREATE TYPE inventory AS (product_id bigint, product_name text, weight >> numeric); >> >> CREATE TABLE stock OF inventory ( >> PRIMARY KEY (product_id), >> weight WITH OPTIONS DEFAULT 0 >> ); >> >> There's currently no way of doing this (neither the primary key, nor the >> default value for any columns). It should probably automatically populate >> the columns from the composite type on the columns tab. >> >> Also, could the generated SQL have an empty line between each statement? > > Another thing I've noticed is that, when adding columns, the "Is > primary key?" column is greyed out. Why not just make those > modifiable in that view rather than having to go into the details for > each column? > > When there's something that hasn't been set up correctly, like adding > variables for a column, but not actually selecting a variable, the SQL > pane, correctly, doesn't show an output, but the error message, > "Please provide input for variable." isn't enough to identify what > needs checking. Could the relevant tab and field/row be > highlighted/coloured in red/bold? This is more general, so doesn't > just apply to the create table dialog. Last issue today: When using "Of type", it's not valid to allow additional columns to be added, so those should be prevented. Thom -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers