Re: Please provide examples of rows from

2020-09-24 Thread Bruce Momjian
On Thu, Sep 24, 2020 at 03:05:24PM -0400, Tom Lane wrote: > Bruce Momjian writes: > > Yes, this is very helpful. I was afraid the JSON would overwhelm the > > example, but this looks good. I wrote the attached doc patch which I > > think improves this. I plan to apply it to all supported versio

Re: Please provide examples of rows from

2020-09-24 Thread Tom Lane
Bruce Momjian writes: > Yes, this is very helpful. I was afraid the JSON would overwhelm the > example, but this looks good. I wrote the attached doc patch which I > think improves this. I plan to apply it to all supported versions. Couple thoughts: * Taking the initial ... out of the syntax

Re: Please provide examples of rows from

2020-09-24 Thread Bruce Momjian
On Sun, Sep 20, 2020 at 02:14:00PM -0400, Tom Lane wrote: > I wrote: > > You're right that the only suitable core function is going to be > > json[b]_to_recordset, but I don't see why you can't extend the > > existing example for that. Something like > > Meh, I was too hasty and pushed "send" wit

Re: Please provide examples of rows from

2020-09-24 Thread Bruce Momjian
On Mon, Sep 14, 2020 at 06:49:22PM -0700, David G. Johnston wrote: > On Thu, Sep 3, 2020 at 6:46 PM Bruce Momjian wrote: > The issue with adding an example is that it is hard to do something > simple and have it illustrate anything.  Does this help? > > That documents one of the two varia

Re: fix typo in lo-examplesect.html

2020-09-24 Thread Tom Lane
"Hou, Zhijie" writes: > When reading https://www.postgresql.org/docs/13/lo-examplesect.html. > The example program here has some small differences from > (src/test/examples/testlo.c). > Of course It doesn't affect reading, just for consistency. Indeed, so pushed (to HEAD only, since it's so mino

fix typo in lo-examplesect.html

2020-09-24 Thread Hou, Zhijie
Hi When reading https://www.postgresql.org/docs/13/lo-examplesect.html. The example program here has some small differences from (src/test/examples/testlo.c). Of course It doesn't affect reading, just for consistency. Best regards 0001-doc-fix.patch Description: 0001-doc-fix.patch