Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpHxZ-0007ac-UV for pgsql-general@arkaria.postgresql.org; Mon, 13 Aug 2018 18:52:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpHxX-0001l8-Rp for pgsql-general@arkaria.postgresql.org; Mon, 13 Aug 2018 18:52:55 +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.89) (envelope-from ) id 1fpHxS-0001HR-7w for pgsql-general@lists.postgresql.org; Mon, 13 Aug 2018 18:52:50 +0000 Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fpHxP-0002DY-G4 for pgsql-general@lists.postgresql.org; Mon, 13 Aug 2018 18:52:48 +0000 Received: by mail-oi0-x22e.google.com with SMTP id w126-v6so29093788oie.7 for ; Mon, 13 Aug 2018 11:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=SCHvwLTvr7laZKKQ10pedFIqYU8I1KdGN6vP7MM5uMI=; b=m5JCFAetL9ebT76p5dD/CvXESiHxpjIr+QJBnjwhuDnmtxv6Epb7m/GBmt+YZuzMYG YbAblxbH3tqFrjoEEPz48OyWWiv6nXs+I8TAnfFkRl4qqETLSHIIH3NRMJ66gIs2gRM2 RGN2Ii8eJVEXL80EJZRB83Fr4YqxDpEYV1E1P4MLb4cYhaqzwWt6n0wCW5vncQw11MnR mr5w7QwBIkA1V5WzxLR5+yOutgg3yWKc4xciFV97b8TzRsGqpZMp/EDfpfK1oIXQu1OH oqd+HBbgBq9nXn1wl2lbqig8dnKU2PgxCPB32iiKIVrKhOMv3O0tyFZ1OvmKAYHyRbPr fXDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=SCHvwLTvr7laZKKQ10pedFIqYU8I1KdGN6vP7MM5uMI=; b=sPY/HACEhkv7c6KKV9iI23GPVe8YPKl8rWN6OVIDfw2zD5R4DrLdkBo98MMSJ9lLmw 5YLWl2/BcpBf+1hEAX3AOtwznJJvqi8d+WXIlGrDgYk5teUBFswJ9+ecJSZMEU7i3WBN hBAe8powzEB+4w9vvfLMrwoj/Ugjhl2wRHEW28OU/HyPpyMSq3s/RZz3K8xr0WtYJv1h De82qgl/GMp0/cXCii/5wlSkk3eVRiAOigCSKtKKhKd+Z45uY/PNIPxdU5nAmYM6BHVK dWIUBH0iuaUZfhWwgt582g7YkB58pxC9AlWt2kHhQXAYstPeUCrWTm3+H1oIOL8OuF0W yLXg== X-Gm-Message-State: AOUpUlHw9L12etygKh2avFLsvFgV8rSn3gXJ3YFQiiyMVif3FRd5fsWM 71p+WXGWXENRdvfmtLMMO5dNieL7 X-Google-Smtp-Source: AA+uWPx35T4UVSZNrvZrE84FHRncElMP+QiWxRN71WAQMOQ1KFed0lE+ZNxB5a+uX4LGOVjWC6iGlg== X-Received: by 2002:aca:2c89:: with SMTP id s131-v6mr18364797ois.171.1534186366796; Mon, 13 Aug 2018 11:52:46 -0700 (PDT) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id s3-v6sm15577189oif.22.2018.08.13.11.52.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Aug 2018 11:52:46 -0700 (PDT) Subject: Re: JSONB filed with default JSON from a file To: pgsql-general@lists.postgresql.org References: <7D710F90-3332-497E-9390-54B1F302961B@swisspug.org> <23116.1534183874@sss.pgh.pa.us> From: Rob Sargent Message-ID: <6d3ae18a-feee-5348-cbf4-c7ee87e8d381@gmail.com> Date: Mon, 13 Aug 2018 12:52:45 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <23116.1534183874@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/13/2018 12:11 PM, Tom Lane wrote: > Merlin Moncure writes: >> On Mon, Aug 13, 2018 at 12:56 PM mrcasa bengaluru wrote: >>> Thanks! However, this involves writing the entire JSON in the schema file looks inconvenient. I was hoping I would be able to reference to an external JSON file which could be used for the default value. > I'm struggling with the notion of default address.  Is the point to get a "blank" json structure in place.  Perhaps to fill in later? Otherwise, it seems like saying the default name is "Bob"? Rarely the value wanted.