Re: libpq bug?

2018-12-28 Thread Igor Korot
Hi, On Fri, Dec 28, 2018 at 5:07 PM Igor Korot wrote: > > Hi, > > On Fri, Dec 28, 2018 at 4:51 PM patrick keshishian wrote: > > > > > > On Fri, Dec 28, 2018 at 2:00 PM Igor Korot wrote: > >> > >> Hi, ALL, > >> Following code: > >

Re: libpq bug?

2018-12-28 Thread Igor Korot
m_bytes( PQgetvalue( res, 0, 0 ) ); } return result; } The charlength2 variable contains the value of 8 and I'm still getting the same error. Any idea? Thank you. On Fri, Dec 28, 2018 at 5:40 PM patrick keshishian wrote: > > On Fri, Dec 28, 2018 at 3:07 PM Igor K

Re: libpq bug?

2018-12-29 Thread Igor Korot
Hi, On Sat, Dec 29, 2018 at 1:37 AM patrick keshishian wrote: > > On Fri, Dec 28, 2018 at 5:40 PM Igor Korot wrote: >> >> Hi, Patrick, >> >> Here is my new code: >> >> int PostgresDatabase::GetTableOwner (const std::wstring &schemaName, >>

Re: libpq bug?

2018-12-31 Thread Igor Korot
Hi, So, does anybody have an idea? I do have following code at the beginning of the cpp file: #ifdef WIN32 #include #pragma execution_character_set("utf-8") #endif but even running it on OSX, I am getting this same error. Thank you. On Fri, Dec 28, 2018 at 11:30 PM Igor Korot wro

Re: Comparing dates in DDL

2019-01-04 Thread Igor Korot
Hi, Rich, On Fri, Jan 4, 2019 at 10:53 AM Rich Shepard wrote: > >I have a projects table that includes these two columns: > > start_date date DEFAULT CURRENT_DATE, > end_date date > CONSTRAINT valid_start_date > CHECK (start_date <= end_date), > >1. Do I need a DEFAULT val

Installing PostgreSQL on Oracle Solaris

2019-03-22 Thread Igor Korot
Hi, ALL, I tried to follow an instructions at https://www.postgresql.org/ftp/binary/v9.6.1/solaris/solaris11/i386/ in the README but I received following: [code] igor@solaris:/usr$ sudo bunzip2 < postgresql-9.6.1-S11.i386-64.tar.bz2 | tar xpf - tar: postgres: Permission denied tar: postgres: Permi

Re: Installing PostgreSQL on Oracle Solaris

2019-03-23 Thread Igor Korot
Hi On Sat, Mar 23, 2019 at 9:25 AM Ron wrote: > > On 3/23/19 8:58 AM, Adrian Klaver wrote: > > On 3/22/19 11:59 PM, Igor Korot wrote: > > Hi, ALL, > I tried to follow an instructions at > https://www.postgresql.org/ftp/binary/v9.6.1/solaris/solaris11/i386/ > i

Re: Installing PostgreSQL on Oracle Solaris

2019-03-23 Thread Igor Korot
Hi, On Sat, Mar 23, 2019 at 9:55 AM Michael Loftis wrote: > > > > On Sat, Mar 23, 2019 at 08:48 Igor Korot wrote: >> >> >> > [code] >> > igor@solaris:/usr$ sudo bunzip2 < postgresql-9.6.1-S11.i386-64.tar.bz2 >> >> You mean even running a

Re: Installing PostgreSQL on Oracle Solaris

2019-03-23 Thread Igor Korot
Hi, On Sat, Mar 23, 2019 at 10:17 AM Ron wrote: > > On 3/22/19 9:50 PM, Igor Korot wrote: > > Hi > > On Sat, Mar 23, 2019 at 9:25 AM Ron wrote: > > On 3/23/19 8:58 AM, Adrian Klaver wrote: > > On 3/22/19 11:59 PM, Igor Korot wrote: > > Hi, ALL, > I tri

Re: Installing PostgreSQL on Oracle Solaris

2019-03-23 Thread Igor Korot
Hi, On Sat, Mar 23, 2019 at 10:36 AM Hans Schou wrote: > > > > On Sat, Mar 23, 2019 at 3:48 PM Igor Korot wrote: >> >> >> You mean even running as "sudo"? > > > igor@solaris:/usr$ sudo bunzip2 < postgresql-9.6.1-S11.i386-64.tar.bz2 > | t

Re: Installing PostgreSQL on Oracle Solaris

2019-03-23 Thread Igor Korot
Hi, On Sat, Mar 23, 2019 at 10:42 AM Tom Lane wrote: > > Igor Korot writes: > >>>> igor@solaris:/usr$ sudo bunzip2 < postgresql-9.6.1-S11.i386-64.tar.bz2 > >>>> | tar xpf - > > > On Sat, Mar 23, 2019 at 9:25 AM Ron wrote: > >> Off hand

Re: Installing PostgreSQL on Oracle Solaris

2019-03-23 Thread Igor Korot
Hi, ALL, On Fri, Mar 22, 2019 at 11:32 PM Igor Korot wrote: > > Hi, > > On Sat, Mar 23, 2019 at 10:42 AM Tom Lane wrote: > > > > Igor Korot writes: > > >>>> igor@solaris:/usr$ sudo bunzip2 < postgresql-9.6.1-S11.i386-64.tar.bz2 > > >>>

Compilation fails with Solaris Studio 12.6

2019-04-14 Thread Igor Korot
Hi, [quote] igor@solaris:~/dbhandlerSol/postgresql$ ./configure checking build system type... i386-pc-solaris2.11 checking host system type... i386-pc-solaris2.11 checking which template to use... solaris checking whether to build with 64-bit integer date/time support... yes checking whether NLS is

Re: Back Slash \ issue

2019-05-03 Thread Igor Korot
Hi, On Fri, May 3, 2019 at 11:20 AM Michael Nolan wrote: > > > > I'm still not clear what the backslash is for, it is ONLY to separate first > and last name? Can you change it to some other character? > > Others have suggested you're in a Windows environment, that might limit your > options.

Inserting into the blob

2019-06-09 Thread Igor Korot
Hi, ALL, How do I insert the png file (content, not a name) into the BLOB field in the table i PostgreSQL DB? Thank you.

Re: Inserting into the blob

2019-06-09 Thread Igor Korot
Hi, Adrian, On Sun, Jun 9, 2019 at 11:14 PM Adrian Klaver wrote: > > On 6/9/19 8:28 AM, Igor Korot wrote: > > Hi, ALL, > > How do I insert the png file (content, not a name) into the BLOB field > > in the table i PostgreSQL DB? > > Are you talking ab

Re: Inserting into the blob

2019-06-10 Thread Igor Korot
Hi, Adrian, On Mon, Jun 10, 2019 at 8:38 AM Adrian Klaver wrote: > > On 6/9/19 10:06 AM, Igor Korot wrote: > > Hi, Adrian, > > > > On Sun, Jun 9, 2019 at 11:14 PM Adrian Klaver > > wrote: > >> > >> On 6/9/19 8:28 AM, Igor Korot wrote: > >&

Re: Inserting into the blob

2019-06-10 Thread Igor Korot
Hi, Adrian, On Mon, Jun 10, 2019 at 7:03 PM Adrian Klaver wrote: > > On 6/10/19 9:30 AM, Igor Korot wrote: > > > > > According to > > https://stackoverflow.com/questions/16048649/postgresql-9-x-pg-read-binary-file-inserting-files-into-bytea, > > the file needs

Re: Inserting into the blob

2019-06-10 Thread Igor Korot
Hi, David, On Mon, Jun 10, 2019 at 10:45 PM David G. Johnston wrote: > > On Mon, Jun 10, 2019 at 8:32 PM Rob Sargent wrote: >> >> > On Jun 10, 2019, at 6:40 AM, Igor Korot wrote: >> > >> > Hi, Adrian, >> > >> >> On Mon, Jun 10, 2019

Detecting PostgreSQL client library

2024-07-10 Thread Igor Korot
Hi, ALL, Is there an explicit autotools macro that can tell the presence of PostgreSQL client library? And that can be used with "configure" script. Or I should be using AC_CHECK_MODULE() one? Thank you.

Re: Detecting PostgreSQL client library

2024-07-10 Thread Igor Korot
On Wed, Jul 10, 2024 at 11:11 AM Pavel Stehule wrote: > > Hi > > st 10. 7. 2024 v 18:07 odesílatel Igor Korot napsal: >> >> Hi, ALL, >> Is there an explicit autotools macro that can tell >> the presence of PostgreSQL client library? >> And that can b

PQconnect()

2024-07-31 Thread Igor Korot
Hi, ALL, In the https://www.postgresql.org/docs/8.1/libpq.html#LIBPQ-CONNECT it gives the "options" parameter", but it doesn't specify what options are available. Could someone please reference this? I am specifically looking for the "KeepAlive" option... Thank you.

Re: update faster way

2024-09-13 Thread Igor Korot
Hii, On Fri, Sep 13, 2024 at 10:22 PM yudhi s wrote: > > Hello, > We have to update a column value(from numbers like '123' to codes like 'abc' > by looking into a reference table data) in a partitioned table with billions > of rows in it, with each partition having 100's millions rows. As we te

Error message

2021-03-15 Thread Igor Korot
Hi, ALL, Documentation for PQprepare states: [quote] As with PQexec, the result is normally a PGresult object whose contents indicate server-side success or failure. A null result indicates out-of-memory or inability to send the command at all. Use PQerrorMessage to get more information about suc

Re: Error message

2021-03-15 Thread Igor Korot
Thx, David. I need to get some sleep. ;-) On Tue, Mar 16, 2021 at 12:35 AM David G. Johnston wrote: > > On Monday, March 15, 2021, Igor Korot wrote: >> >> [quote] >> As with PQexec, the result is normally a PGresult object whose >> contents indicate server-s

How can I insert the image as a blob in the table

2021-04-11 Thread Igor Korot
Hi, ALL, I have an image on my hard drive and I'd like to store it in the BLOB column of the images table. Is there a simple SQL to do that in PostgreSQL? Thank you.

Re: How can I insert the image as a blob in the table

2021-04-11 Thread Igor Korot
Hi, David, On Sun, Apr 11, 2021 at 6:24 PM David G. Johnston wrote: > > On Sun, Apr 11, 2021 at 2:04 PM Igor Korot wrote: >> >> Hi, ALL, >> I have an image on my hard drive and I'd like to store it in the BLOB >> column of the images table. >> >>

Re: How can I insert the image as a blob in the table

2021-04-11 Thread Igor Korot
Hi, David, On Sun, Apr 11, 2021 at 6:57 PM David G. Johnston wrote: > > On Sunday, April 11, 2021, Igor Korot wrote: >> >> Hi, David, >> >> >> On Sun, Apr 11, 2021 at 6:24 PM David G. Johnston >> wrote: >> >> > If you can decide

Re: How can I insert the image as a blob in the table

2021-04-12 Thread Igor Korot
Hi, guys, On Sun, Apr 11, 2021 at 7:08 PM Igor Korot wrote: > > Hi, David, > > On Sun, Apr 11, 2021 at 6:57 PM David G. Johnston > wrote: > > > > On Sunday, April 11, 2021, Igor Korot wrote: > >> > >> Hi, David, > >> > >> >

Re:

2021-07-02 Thread Igor Korot
Hi, On Fri, Jul 2, 2021, 5:24 AM Atul Kumar wrote: > Hi, > > I have one query like below : > > > SELECT > m.iMemberId "memberId", > m.cFirstName "firstName", > m.cLastName "la

Re:

2021-09-01 Thread Igor Korot
Hi, On Wed, Sep 1, 2021, 07:32 obi reddy wrote: > Hi everyone > > is there any one working on PostgreSQL windows machine. > You mean server installed on Windows? Or client? If the client - which one? And what is your question? Thank you. > Thank you & Regards > Obireddy.G >

Re:

2021-09-01 Thread Igor Korot
On Wed, 1 Sep 2021, 6:21 pm Igor Korot, wrote: >> >> Hi, >> >> >> >> On Wed, Sep 1, 2021, 07:32 obi reddy wrote: >>> >>> Hi everyone >>> >>> is there any one working on PostgreSQL windows machine. >> >>

Re:

2021-09-01 Thread Igor Korot
Hi, On Wed, Sep 1, 2021 at 9:37 AM obi reddy wrote: > > Windows version:10 > Postgresql version:13. > > On Wed, 1 Sep 2021, 6:47 pm Igor Korot, wrote: >> >> Hi, >> >> On Wed, Sep 1, 2021 at 7:57 AM obi reddy wrote: >> > >> > 1.How to set

Splitting libpq build

2021-10-03 Thread Igor Korot
Hi, ALL, I wonder who ade the decision not to provide an independent build of the client library of PostgreSQL? And what was the reason behind it? Its very annoying to build the whole server, just to create a client library to connect to a remote DB. And then kill the build after the install as us

Re: Splitting libpq build

2021-10-03 Thread Igor Korot
Hi Tom, On Sun, Oct 3, 2021 at 3:11 PM Tom Lane wrote: > > Igor Korot writes: > > I wonder who ade the decision not to provide an independent build > > of the client library of PostgreSQL? And what was the reason behind it? > > It wasn't worth the maintenance trou

Re: Splitting libpq build

2021-10-03 Thread Igor Korot
Hi, Adrian, On Sun, Oct 3, 2021 at 3:28 PM Adrian Klaver wrote: > > On 10/3/21 1:20 PM, Igor Korot wrote: > > Hi Tom, > > > > On Sun, Oct 3, 2021 at 3:11 PM Tom Lane wrote: > >> > >> Igor Korot writes: > >>> I wonder who ade the decision n

Re: Splitting libpq build

2021-10-03 Thread Igor Korot
Hi, Tom, On Sun, Oct 3, 2021 at 5:27 PM Tom Lane wrote: > > Igor Korot writes: > > Imagine you are a developer/maintainer of sme software. This software needs > > to > > connect to different DBMSes perform soe operations and then disconnect. > > It is very easy

How to write such a query?

2022-01-05 Thread Igor Korot
Hi, ALL, In SQLite you can write: SELECT a, b, c FROM foo WHERE id = :id; where ":id" is the named parameter. The query above is similar to SELECT a,b,c FROM foo WHERE id = ?; except that the parameter has a name. Is there a way to write such a SELECT statement with the named parameter in Pos

Re: How to write such a query?

2022-01-05 Thread Igor Korot
Hi, Ron, On Thu, Jan 6, 2022 at 1:01 AM Ron wrote: > > On 1/6/22 12:39 AM, Igor Korot wrote: > > Hi, ALL, > > In SQLite you can write: > > > > SELECT a, b, c FROM foo WHERE id = :id; > > > > where ":id" is the named parameter. > > >

Re: How to write such a query?

2022-01-05 Thread Igor Korot
Hi, David, On Thu, Jan 6, 2022 at 1:00 AM David G. Johnston wrote: > > On Wednesday, January 5, 2022, Igor Korot wrote: >> >> >> Is there a way to write such a SELECT statement with the >> named parameter in PostgreSQL? > > > The server, and its prepared S

Re: How to write such a query?

2022-01-05 Thread Igor Korot
FROM foo WHERE id = ?; i.e. using unnamed parameter. Thank you. > > On Thu, Jan 6, 2022 at 12:10 PM Igor Korot wrote: > > > > Hi, ALL, > > In SQLite you can write: > > > > SELECT a, b, c FROM foo WHERE id = :id; > > > > where ":id&

Re: Nightmare? was unsubscribe

2017-11-21 Thread Igor Korot
Hi, I'm curious - what was the problem in the first place? Why people who performed the change couldn't create a mail template where the "Subscribe/Unsubscribe" links would be visible at the bottom of the e-mail? There has to be a way of doing this sort of things. Especially if you as a user have

Re: Nightmare? was unsubscribe

2017-11-21 Thread Igor Korot
Andrew, On Tue, Nov 21, 2017 at 12:50 PM, Andrew Sullivan wrote: > Hi, > > On Tue, Nov 21, 2017 at 12:44:48PM -0600, Igor Korot wrote: >> Why people who performed the change couldn't create a mail template >> where the "Subscribe/Unsubscribe" >> links wo

Re: migrations (was Re: To all who wish to unsubscribe)

2017-11-21 Thread Igor Korot
Hi, On Tue, Nov 21, 2017 at 2:15 PM, Jerry Regan wrote: > I kind of agree with both. Personally, my strengths are data communication. > Databases are frequent end points. Mailing lists? Have never had a need to > work with them, so they’re in the, “don’t care” bucket so long as they work. > >

Re: DOW is 0-based?

2018-02-08 Thread Igor Korot
Hi, On Thu, Feb 8, 2018 at 2:24 PM, Igal @ Lucee.org wrote: > Is there a rational reason why Day of the Week is 0-based, i.e. Sunday (0) > to Saturday (6) instead of the more intuitive Sunday (1) to Saturday (7)? > > SELECT date_part('dow', current_date); > > https://www.postgresql.org/docs/c

Re: Assistance Required: Timeout or Buffer Overflow Issue in PostgreSQL Client Application

2024-10-24 Thread Igor Korot
Hi, Is this a complete backtrace? Can you post a complete backtrace? We need to see if there is a reference to your application code? What language is it written in? What operation this thread was performing? Thank you. On Thu, Oct 24, 2024 at 11:12 AM Sasmit Utkarsh wrote: > > Dear PostgreSQL

Link error on Release mode

2024-11-27 Thread Igor Korot
Hi, ALL. Today for the first time I tried to build my software in Release mode. This is the command MSVC generates: /OUT:"..\dbhandler\vc_mswudll\postgres_dll.dll" /MANIFEST /NXCOMPAT /PDB:"vc_mswudll\my_dll.pdb" /DYNAMICBASE "dbinterface.lib" "libpq.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "

Find out the version of the server

2024-11-28 Thread Igor Korot
Hi, ALL, In April of 2017 I got the source code of the Postgresql, build the libpq and then deleted everything else. I was using MSVC 3010 at the time. Now I moved to MSVC 2017 but unfortunately I can't reuse the library built, since MSVC changed one of its headers. Is it possible to find what

Re: Find out the version of the server

2024-11-29 Thread Igor Korot
Thx. On Fri, Nov 29, 2024, 2:03 PM Tom Lane wrote: > Adrian Klaver writes: > > On 11/29/24 11:15 AM, Igor Korot wrote: > >> Are you saying that the current version can connect even to 9.6.1 > >> server? (I have a really old Mac with the 9.6.1 version installed). &

Re: Find out the version of the server

2024-11-29 Thread Igor Korot
Hi, Adrian, On Fri, Nov 29, 2024, 1:24 PM Adrian Klaver wrote: > Reply to list also > > Ccing list > > On 11/29/24 11:15 AM, Igor Korot wrote: > > Hi, Adrian, > > > > On Fri, Nov 29, 2024 at 10:12 AM Adrian Klaver > > wrote: > >> > > &g

Re: Insert records in the tavke only if they are not exist

2024-12-07 Thread Igor Korot
Hi, Adrian, On Sat, Dec 7, 2024 at 5:07 PM Adrian Klaver wrote: > > On 12/7/24 12:17, Igor Korot wrote: > > Hi, Adrian, > > > > On Sat, Dec 7, 2024 at 12:32 PM Adrian Klaver > > wrote: > >> > >> On 12/7/24 09:59, Igor Korot wrote: > >>

Re: Insert records in the tavke only if they are not exist

2024-12-07 Thread Igor Korot
Hi, Adrian, On Sat, Dec 7, 2024 at 11:18 AM Adrian Klaver wrote: > > On 12/6/24 19:36, Igor Korot wrote: > > Hi, All, > > > > When my application starts up, ot creates some tables and insert records > > in them. > > > > When the app starts for the

Re: Insert records in the tavke only if they are not exist

2024-12-07 Thread Igor Korot
Hi, Adrian, On Sat, Dec 7, 2024 at 12:32 PM Adrian Klaver wrote: > > On 12/7/24 09:59, Igor Korot wrote: > > Hi, Adrian, > > > > On Sat, Dec 7, 2024 at 11:18 AM Adrian Klaver > > wrote: > >> > >> On 12/6/24 19:36, Igor Korot wrote: > >>

Re: Postgres do not support tinyint?

2025-01-07 Thread Igor Korot
Hi, Ron, On Tue, Jan 7, 2025 at 11:24 PM Ron Johnson wrote: > > On Wed, Jan 8, 2025 at 12:06 AM Igor Korot wrote: >> >> Hi, ALL, >> According to https://www.postgresql.org/docs/9.1/datatype-numeric.html, the >> smallest numeric type supports numbers from -32768 t

How to get a notification

2025-02-05 Thread Igor Korot
Hi, ALL, In my code I'm running following: queries.push_back( L"CREATE FUNCTION __watch_schema_changes() RETURNS event_trigger LANGUAGE plpgsql AS $$ BEGIN NOTIFY tg_tag; END; $$;" ); queries.push_back( L"CREATE EVENT TRIGGER schema_change_notify ON ddl_command_end WHEN TAG

Re: How to get a notification

2025-02-07 Thread Igor Korot
Hi, Adrian, On Fri, Feb 7, 2025 at 11:07 AM Adrian Klaver wrote: > > On 2/5/25 23:21, Igor Korot wrote: > > Hi, ALL, > > In my code I'm running following: > > > > queries.push_back( L"CREATE FUNCTION > > __watch_schema_changes() RETURNS

Re: How to get a notification

2025-02-07 Thread Igor Korot
Hi, Adrian, On Fri, Feb 7, 2025, 1:13 PM Adrian Klaver wrote: > > > On 2/7/25 11:02 AM, Igor Korot wrote: > > Hi, Adrian, > > > > On Fri, Feb 7, 2025 at 11:07 AM Adrian Klaver > wrote: > >> > >> On 2/5/25 23:21, Igor Korot wrote: >

Insert records in the tavke only if they are not exist

2024-12-06 Thread Igor Korot
Hi, All, When my application starts up, ot creates some tables and insert records in them. When the app starts for the second time it should check if the tables and the records in them are exist and skip the process. Everything is good, except what if I have a connection from 2 different users?

Re: Insert records in the tavke only if they are not exist

2024-12-06 Thread Igor Korot
Hi, Dvid, On Fri, Dec 6, 2024, 9:55 PM David G. Johnston wrote: > On Friday, December 6, 2024, Igor Korot wrote: >> >> When my application starts up, ot creates some tables and insert records >> in them. >> >> When the app starts for the second time it shou

Re: Postgres do not support tinyint?

2025-01-08 Thread Igor Korot
Hi, Christopphe, On Wed, Jan 8, 2025 at 1:34 PM Christophe Pettus wrote: > > > > > On Jan 8, 2025, at 11:30, Igor Korot wrote: > > There is no boolean - it is 0-4 inclusive. > > Unless you have somehow gotten PostgreSQL running on an IBM 7070, the range > 0-4 can

Fwd: Lock in postgreSQL

2025-01-14 Thread Igor Korot
Hi, ALL, This concern both libpq and DBC API. Hopefully I can get answers on both. Than yu. -- Forwarded message - From: Igor Korot Date: Tue, Jan 14, 2025 at 12:50 AM Subject: Lock in postgreSQL To: pgsql-generallists.postgresql.org , PostgreSQL ODBC list Hi, ALL, https

Re: Postgres do not support tinyint?

2025-01-08 Thread Igor Korot
Hi, Christophe, On Wed, Jan 8, 2025 at 12:49 AM Christophe Pettus wrote: > > > > > On Jan 7, 2025, at 22:44, David G. Johnston > > wrote: > > > > You suggest a type with a minimum size of 6 bytes when the complaint is > > that the otherwise acceptable 2 byte data type is too large? > > Althoug

Postgres do not support tinyint?

2025-01-07 Thread Igor Korot
Hi, ALL, According to https://www.postgresql.org/docs/9.1/datatype-numeric.html, the smallest numeric type supports numbers from -32768 to 32767/ My data will be in a range of [0..4], and so I guess my DB table will waste space, right? Thank you.

Clarification on the docs

2025-04-11 Thread Igor Korot
Hi, ALL, On the https://www.postgresql.org/docs/17/sql-createindex.html#SQL-CREATEINDEX-STORAGE-PARAMETERS its said: [quote] The optional WITH clause specifies storage parameters for the index. Each index method has its own set of allowed storage parameters. The B-tree, hash, GiST and SP-GiST ind

Identify system databases

2025-04-15 Thread Igor Korot
Hi, ALL, Is there a field in the pg_databases table which indicates that particular DB is a system one? Or it can be determined ony by name? Thank you.

Re: Clarification on the docs

2025-04-19 Thread Igor Korot
Hi, Dvid, On Fri, Apr 11, 2025, 9:04 PM David G. Johnston wrote: > On Fri, Apr 11, 2025 at 6:49 PM Igor Korot wrote: > >> Hi, ALL, >> On the >> https://www.postgresql.org/docs/17/sql-createindex.html#SQL-CREATEINDEX-STORAGE-PARAMETERS >> its said: >> &g

Re: Clarification on the docs

2025-04-19 Thread Igor Korot
David, On Sat, Apr 19, 2025, 7:21 PM David G. Johnston wrote: > On Sat, Apr 19, 2025 at 4:17 PM Igor Korot wrote: > >> >> Could you indicate the default value for every option here? >> >>> >>> > The descriptions clearly indicate the defaults for n

Another documentation issue

2025-04-22 Thread Igor Korot
Hi, ALL, On the page https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-SEQ-PAGE-COST it is only given the default value of this parameter. No min/max values are provided.. The same can be sad about https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-RANDOM

Re: How to properly fix memory leak

2025-04-25 Thread Igor Korot
Hi, David, On Fri, Apr 25, 2025 at 10:48 PM David G. Johnston wrote: > > On Friday, April 25, 2025, Igor Korot wrote: >> >> >> for( int i = 0; i < PQntuples( res ); i++ ) >> { >> auto temp1 = m_pimpl->m_m

Re: How to get the data from the query

2025-04-26 Thread Igor Korot
|7 | NO benchplayers | integer | | |32 | 2 | 0 | YES | |8 | NO (8 rows) lines 1-12/12 (END) Thank you. On Sat, Apr 26, 2025 at 8:06 PM David G. Johnston wrote: > > On Saturday, April 26, 2025, I

Re: How to properly fix memory leak

2025-04-26 Thread Igor Korot
David et al, On Fri, Apr 25, 2025 at 10:48 PM David G. Johnston wrote: > > On Friday, April 25, 2025, Igor Korot wrote: >> >> >> for( int i = 0; i < PQntuples( res ); i++ ) >> { >> auto temp1 = m_pimpl->m_m

Re: How to properly fix memory leak

2025-04-25 Thread Igor Korot
Hi, David, On Fri, Apr 25, 2025 at 11:55 PM David G. Johnston wrote: > > On Friday, April 25, 2025, Igor Korot wrote: >> >> >> And the error case was handled correctly, right? > > > Seems like answering that requires knowing what the query is or can be. I &

Re: How to properly fix memory leak

2025-04-26 Thread Igor Korot
Hi, Tom, On Sat, Apr 26, 2025 at 4:34 PM Tom Lane wrote: > Igor Korot writes: > >>>> auto temp1 = m_pimpl->m_myconv.from_bytes( PQgetvalue( > >>>> res, i, 1 ) ); > >>>> m_tablespaces.push

How to properly fix memory leak

2025-04-25 Thread Igor Korot
Hi, ALL, [code] auto res = PQexec( m_db, m_pimpl->m_myconv.to_bytes( query.c_str() ).c_str() ); /* ask for binary results */ if( PQresultStatus( res ) != PGRES_TUPLES_OK ) { auto err = m_pimpl->m_myconv.from_bytes( PQerrorMessage( m_db ) ); errorMsg.push_back( L"Up

Re: Clarification on the docs

2025-04-11 Thread Igor Korot
Hi, David, On Fri, Apr 11, 2025 at 9:04 PM David G. Johnston < david.g.johns...@gmail.com> wrote: > On Fri, Apr 11, 2025 at 6:49 PM Igor Korot wrote: > >> Hi, ALL, >> On the >> https://www.postgresql.org/docs/17/sql-createindex.html#SQL-CREATEINDEX-STORAGE-PARAME

Re: Another documentation issue

2025-04-23 Thread Igor Korot
Tom, On Wed, Apr 23, 2025 at 1:40 PM Tom Lane wrote: > Igor Korot writes: > > On Wed, Apr 23, 2025 at 1:28 PM Tom Lane wrote: > >> If we do anything about this, I'd just say "systems that have > >> posix_fadvise()". If we write something more specifi

Re: Another documentation issue

2025-04-23 Thread Igor Korot
Hi, Tom, On Wed, Apr 23, 2025 at 1:28 PM Tom Lane wrote: > Daniel Gustafsson writes: > >> On 23 Apr 2025, at 09:16, Laurenz Albe > wrote: > >> On Wed, 2025-04-23 at 00:21 -0500, Igor Korot wrote: > >>> No explanation of what is "supported system"

Re: Another documentation issue

2025-04-23 Thread Igor Korot
Tom, On Wed, Apr 23, 2025 at 1:40 PM Tom Lane wrote: > > Igor Korot writes: > > On Wed, Apr 23, 2025 at 1:28 PM Tom Lane wrote: > >> If we do anything about this, I'd just say "systems that have > >> posix_fadvise()". If we write something more

Re: Another documentation issue

2025-04-23 Thread Igor Korot
Hi, Laurenz, On Wed, Apr 23, 2025 at 2:16 AM Laurenz Albe wrote: > > On Wed, 2025-04-23 at 00:21 -0500, Igor Korot wrote: > > On the page > > https://www.postgresql.org/docs/current/runtime-config-query.html#GUC-SEQ-PAGE-COST > > > > it is only given the d

Re: Another documentation issue

2025-04-23 Thread Igor Korot
Hi, David, On Thu, Apr 24, 2025 at 12:23 AM David G. Johnston wrote: > > On Wednesday, April 23, 2025, Igor Korot wrote: >> >> >> How do you handle sch situation from the client POV? > > > Get the current value. If it’s non-zero the system definitely supports

Fwd: Identify system databases

2025-04-15 Thread Igor Korot
-- Forwarded message - From: Igor Korot Date: Tue, Apr 15, 2025 at 11:16 AM Subject: Re: Identify system databases To: Adrian Klaver Hi, Adrian, On Tue, Apr 15, 2025 at 10:07 AM Adrian Klaver wrote: > On 4/15/25 07:48, Igor Korot wrote: > > Hi, ALL, > > Is t

Fwd: Identify system databases

2025-04-15 Thread Igor Korot
-- Forwarded message - From: Igor Korot Date: Tue, Apr 15, 2025 at 11:15 AM Subject: Re: Identify system databases To: David G. Johnston Hi, David, On Tue, Apr 15, 2025 at 9:56 AM David G. Johnston < david.g.johns...@gmail.com> wrote: > On Tuesday, April 15, 2025, I

Re: How to properly fix memory leak

2025-04-26 Thread Igor Korot
Hi, Lauren’s, On Sat, Apr 26, 2025 at 3:30 PM Laurenz Albe wrote: > On Fri, 2025-04-25 at 22:24 -0500, Igor Korot wrote: > > Hi, ALL, > > > > [code] > > auto res = PQexec( m_db, m_pimpl->m_myconv.to_bytes( query.c_str() > > ).c_str() ); /*

How to get the data from the query

2025-04-26 Thread Igor Korot
Hi, ALL, [code] std::wstring query2 = L"SELECT DISTINCT column_name, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_precision_radix, numeric_scale, is_nullable, column_default, CASE WHEN column_name IN (SELECT ccu.column_name FROM information_schema.con

Re: How to get the data from the query

2025-04-26 Thread Igor Korot
Hi, David, On Sat, Apr 26, 2025 at 8:06 PM David G. Johnston wrote: > > On Saturday, April 26, 2025, Igor Korot wrote: >> >> but the size comes out "" (empty) >> > > What is the value you are expecting? Expecting to have "100". What is the m

Re: How to get the data from the query

2025-04-26 Thread Igor Korot
0 | YES | |8 (8 rows) [/code] Thank you. On Sat, Apr 26, 2025 at 8:06 PM David G. Johnston wrote: > > On Saturday, April 26, 2025, Igor Korot wrote: >> >> but the size comes out "" (empty) >> > > What is the value you are expect

Re: Version compatibility

2025-03-01 Thread Igor Korot
Hi, Adrian, On Sat, Mar 1, 2025 at 12:31 PM Adrian Klaver wrote: > > On 3/1/25 14:17, Igor Korot wrote: > > Reply to list also. > Ccing list. > > Comments inline. > > > Hi, Adrian, > > On Sat, Mar 1, 2025 at 11:23 AM Adrian Klaver > <mailto:adrian.kla.

Error on the query

2025-03-04 Thread Igor Korot
Hi, ALL, Trying to execute following query: [code] queries.push_back( L"DO $$ BEGIN IF NOT EXISTS( SELECT 1 FROM pg_class c, pg_namespace n WHERE n.oid = c.relnamespace AND c.relname = \'abcatc_x\' AND n.nspname = \'public\' ) THEN CREATE UNIQUE INDEX \"abcatc_x\" ON \"abcatcol\"(\"abc_tna

Re: Version compatibility

2025-03-04 Thread Igor Korot
Hi, Adrian, On Tue, Mar 4, 2025, 3:00 PM Adrian Klaver wrote: > > > On 3/4/25 3:00 PM, Igor Korot wrote: > > Hi, Adrian, > > > > On Sat, Mar 1, 2025 at 7:06 PM Adrian Klaver > wrote: > >> > >> On 3/ > >> > >> Did the connecti

Re: Error on the query

2025-03-04 Thread Igor Korot
Hi, Pavel, On Tue, Mar 4, 2025 at 11:36 AM Pavel Stehule wrote: > > Hi > > út 4. 3. 2025 v 18:30 odesílatel Igor Korot napsal: >> >> Hi, ALL, >> Trying to execute following query: >> >> [code] >> queries.push_back( L"DO $$ BEGIN IF NO

Re: Quesion about querying distributed databases

2025-03-06 Thread Igor Korot
r example, creating all databases and tables and database objects > on MariaDB takes more than 400 seconds, while the same took 80 seconds on > Postgres. So amazing performance on DDL. > Also, 1 million records in bulk insertion take almost one-sixth to > on-fourth of the time on MariaDB.

Re: Quesion about querying distributed databases

2025-03-06 Thread Igor Korot
Hi, On Thu, Mar 6, 2025, 7:32 AM Greg Sabino Mullane wrote: > On Wed, Mar 5, 2025 at 9:44 PM me nefcanto wrote: > >> Anyway, that's why I asked you guys. However, encouraging me to go back >> to monolith without giving solutions on how to scale, is not helping. >> > > We did. In addition to the

Re: Error on query execution

2025-03-05 Thread Igor Korot
Tom, On Tue, Mar 4, 2025, 8:37 PM Tom Lane wrote: > Igor Korot writes: > > binaryIntVal = htonl( (uint32_t) type ); > > paramValues[0] = (char *) &binaryIntVal; > > paramLengths[0] = sizeof( binaryIntVal ); > > paramFormats[0] = 1; > >

Re: Quesion about querying distributed databases

2025-03-05 Thread Igor Korot
Hi, On Wed, Mar 5, 2025, 8:44 PM me nefcanto wrote: > I once worked with a monolithic SQL Server database with more than 10 > billion records and about 8 Terabytes of data. A single backup took us more > than 21 days. It was a nightmare. Almost everybody knows that scaling up > has a ceiling, bu

Re: Error on query execution

2025-03-06 Thread Igor Korot
H, On Tue, Mar 4, 2025 at 8:37 PM Tom Lane wrote: > > Igor Korot writes: > > binaryIntVal = htonl( (uint32_t) type ); > > paramValues[0] = (char *) &binaryIntVal; > > paramLengths[0] = sizeof( binaryIntVal ); > > paramFormats[0] = 1; > &g

Big script execution

2025-03-11 Thread Igor Korot
Hi, ALL, I am trying to execute a huge script (~40K lines) that will populate my database. The script starts with "BEGIN TRANSACTION" and will end with "COMMIT". however I'd like to rollback if there is an error encounter. When I execute it from the Terminal I do use -v ON_ERROR_STOP=1 but I'd

Re: Big script execution

2025-03-11 Thread Igor Korot
Thank you! On Mon, Mar 10, 2025, 11:37 AM Christophe Pettus wrote: > > > > On Mar 10, 2025, at 09:35, Igor Korot wrote: > > > > Will the tables also be deleted? > > The CREATE TABLE statements are part of this big transaction. > > Yes. DDL is transactional in PostgreSQL just like DML. >

Re: Big script execution

2025-03-11 Thread Igor Korot
Hi, Laurenz, On Mon, Mar 10, 2025, 11:31 AM Laurenz Albe wrote: > On Mon, 2025-03-10 at 16:42 -0500, Igor Korot wrote: > > I am trying to execute a huge script (~40K lines) that will populate > > my database. > > > > The script starts with "BEGIN TRANSACTIO

Version compatibility

2025-03-01 Thread Igor Korot
Hi, ALL, I have PostgreSQL version 13 and ODBC driver version 11 on my Gentoo box. Are they compatible? Can I still connect to the server? Thank you. P.S.: Sorry if the question belongs to DBC ML. it's hard to make a distinction...

Re: Error on query execution

2025-03-05 Thread Igor Korot
Hi, Tom, On Tue, Mar 4, 2025 at 8:37 PM Tom Lane wrote: > > Igor Korot writes: > > binaryIntVal = htonl( (uint32_t) type ); > > paramValues[0] = (char *) &binaryIntVal; > > paramLengths[0] = sizeof( binaryIntVal ); > > paramFormats[0] = 1; &g

<    1   2   3   >