pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: JSONB filed with default JSON from a file
Date: Mon, 13 Aug 2018 12:52:45 -0600
Message-ID: <6d3ae18a-feee-5348-cbf4-c7ee87e8d381@gmail.com> (raw)
In-Reply-To: <23116.1534183874@sss.pgh.pa.us>
References: <CALpZ+ORgw=ZjZDBJ32E4ucuZBtVnHEHQ4=GM2Ex+w378QwBAXQ@mail.gmail.com>
	<7D710F90-3332-497E-9390-54B1F302961B@swisspug.org>
	<CALpZ+OStrE8EC51KgChTd4HTvd50LSXatHzCqLuUdK0_pdfANQ@mail.gmail.com>
	<CAHyXU0zcM_S+7CtObiSEUr0W1COue6LcjSvDz4u7w-NPUexfjw@mail.gmail.com>
	<23116.1534183874@sss.pgh.pa.us>



On 08/13/2018 12:11 PM, Tom Lane wrote:
> Merlin Moncure <mmoncure@gmail.com> writes:
>> On Mon, Aug 13, 2018 at 12:56 PM mrcasa bengaluru <mrcasablr@gmail.com> 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.




view thread (6+ messages)

Message-ID: <6d3ae18a-feee-5348-cbf4-c7ee87e8d381@gmail.com>
Permalink:  ../6d3ae18a-feee-5348-cbf4-c7ee87e8d381@gmail.com/
Also on:    postgresql.org/message-id/6d3ae18a-feee-5348-cbf4-c7ee87e8d381@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com
  Subject: Re: JSONB filed with default JSON from a file
  In-Reply-To: <6d3ae18a-feee-5348-cbf4-c7ee87e8d381@gmail.com>
  References: <CALpZ+ORgw=ZjZDBJ32E4ucuZBtVnHEHQ4=GM2Ex+w378QwBAXQ@mail.gmail.com> <7D710F90-3332-497E-9390-54B1F302961B@swisspug.org> <CALpZ+OStrE8EC51KgChTd4HTvd50LSXatHzCqLuUdK0_pdfANQ@mail.gmail.com> <CAHyXU0zcM_S+7CtObiSEUr0W1COue6LcjSvDz4u7w-NPUexfjw@mail.gmail.com> <23116.1534183874@sss.pgh.pa.us> <6d3ae18a-feee-5348-cbf4-c7ee87e8d381@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox