Re: [GENERAL] Sample in documentation

2017-05-07 Thread Igor Korot
Tom et al, On Sun, May 7, 2017 at 1:09 PM, Tom Lane wrote: > Igor Korot writes: >> On Sat, May 6, 2017 at 8:22 PM, Tom Lane wrote: >>> I do not see any arrays named "length", nor even any arrays of size 2, >>> on that page, so I'm pretty confused what you're talking about. Please >>> be more s

Re: [GENERAL] Sample in documentation

2017-05-07 Thread Tom Lane
Igor Korot writes: > On Sat, May 6, 2017 at 8:22 PM, Tom Lane wrote: >> I do not see any arrays named "length", nor even any arrays of size 2, >> on that page, so I'm pretty confused what you're talking about. Please >> be more specific. > I based my code on this: > http://stackoverflow.com/que

Re: [GENERAL] Sample in documentation

2017-05-06 Thread Igor Korot
Hi, Tom, On Sat, May 6, 2017 at 8:22 PM, Tom Lane wrote: > Igor Korot writes: >> I tried to implement the code found in >> https://www.postgresql.org/docs/current/static/libpq-example.html. >> ... >> I am getting an error: >> [quote] >> Non-constant-expression cannot be narrowed from type 'size_

Re: [GENERAL] Sample in documentation

2017-05-06 Thread Tom Lane
Igor Korot writes: > I tried to implement the code found in > https://www.postgresql.org/docs/current/static/libpq-example.html. > ... > I am getting an error: > [quote] > Non-constant-expression cannot be narrowed from type 'size_t' (aka > 'unsigned long') to 'int' in initializer list > [/quote]

[GENERAL] Sample in documentation

2017-05-06 Thread Igor Korot
Hi, ALL, I tried to implement the code found in https://www.postgresql.org/docs/current/static/libpq-example.html. On Windows with MSVC 2010 and Liniux with gcc-5.4 it compiled fine. However on OSX 10.8 with: [code] Igors-MacBook-Air:dbhandler igorkorot$ gcc --version Configured with: --prefix=/