Re: JSONB filed with default JSON from a file

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: JSONB filed with default JSON from a file
Date: 2018-08-13 18:52:45
Message-ID: 6d3ae18a-feee-5348-cbf4-c7ee87e8d381@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Don Seiler 2018-08-13 21:04:15 Vacuum process waiting on BufferPin
Previous Message Tom Lane 2018-08-13 18:11:14 Re: JSONB filed with default JSON from a file