Search Postgresql Archives

RE: Query on Postgres SQL transaction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Please find my inline comments for your questions.


Regards,
Venkat


Internal Use - Confidential
-----Original Message-----
From: Adrian Klaver +ADw-adrian.klaver+AEA-aklaver.com+AD4-
Sent: Tuesday, March 19, 2024 9:33 PM
To: Bandi, Venkataramana - Dell Team +ADw-Venkataramana.Bandi+AEA-dellteam.com+AD4AOw- Greg Sabino Mullane +ADw-htamfids+AEA-gmail.com+AD4-
Cc: pgsql-general+AEA-lists.postgresql.org+ADs- Kishore, Nanda - Dell Team +ADw-Nanda.Kishore+AEA-Dellteam.com+AD4AOw- Alampalli, Kishore +ADw-Kishoreravishankar.Alampalli+AEA-dellteam.com+AD4-
Subject: Re: Query on Postgres SQL transaction


+AFs-EXTERNAL EMAIL+AF0-

On 3/19/24 02:18, Bandi, Venkataramana - Dell Team wrote:
+AD4- Hi Greg,
+AD4-
+AD4- We are using hibernate framework to persist the data into Postgres SQL
+AD4- DB and data is persisting and committing for all the clients but one
+AD4- of the client data is not inserted into DB.

What is different about that client?
Ans: In our application data is getting from different nodes(systems) and persisting into Postgres SQL DB but for one of the nodes(system) data is not persisting and sometimes data is persisting for this node also. We have to trace out the transaction why data is not persisting sometimes.
Are all the clients passing data through the same instance of the framework?
Ans: Since it is a monolithic architecture application, it is running on same instance.
Are you sure that the client is pointed at the correct database?
Ans: Yes, its pointed to correct database and with same database connection, data is persisting for other nodes.
Is the log entry below from that client?
Ans: Yes
+AD4-
+AD4- Not getting any error/exception for this case. Could you please let us
+AD4- know how we can trace out this scenario on transaction level whether
+AD4- transaction is committing or not?
+AD4-
+AD4- We have enabled below properties in postgresql.conf file and verified
+AD4- but didn't get any findings about the transaction and below log
+AD4- statements are writing in our data store logs.
+AD4-
+AD4- log+AF8-statement +AD0- 'all'
+AD4-
+AD4- logging+AF8-collector +AD0- on
+AD4-
+AD4- log+AF8-min+AF8-messages +AD0- debug5
+AD4-
+AD4- log+AF8-min+AF8-error+AF8-statement +AD0- debug5
+AD4-
+AD4- 2024-02-19 15:21:54.850 +-08 +AFs-1876+AF0- LOG:  execute S+AF8-48: insert into
+AD4- xxxxxxx
+AD4- (f+AF8-schedule+AF8-name,f+AF8-id,f+AF8-totaldataredtn,f+AF8-invalidationtime,f+AF8-statuscode
+AD4- ,f+AF8-module,f+AF8-app+AF8-type,f+AF8-dbbackuptype,f+AF8-is+AF8-compressed,f+AF8-proxy,f+AF8-size,f+AF8-s
+AD4- izeprotected,f+AF8-groupjobid,f+AF8-status,f+AF8-bytesmodifiednotsent,f+AF8-sizetransf
+AD4- erredboffset,f+AF8-bytesmodifiedsent,f+AF8-errcode,f+AF8-jobid2,f+AF8-media+AF8-server,f+AF8-s
+AD4- tarttime,f+AF8-storageid,f+AF8-pool,f+AF8-queuestart,f+AF8-sizescannedboffset,f+AF8-errorc
+AD4- odesummary,f+AF8-ncopies,f+AF8-sizeprotectedboffset,f+AF8-snap+AF8-target+AF8-platform,f+AF8-b
+AD4- ackup+AF8-servername,f+AF8-nfiles,f+AF8-expiry,f+AF8-owner,f+AF8-policy+AF8-id,f+AF8-parentjobid,f
+AD4- +AF8-sub+AF8-name,f+AF8-completion+AF8-status,f+AF8-endtime,f+AF8-filesscanned,f+AF8-idle+AF8-wait,f+AF8-s
+AD4- torage+AF8-unit,f+AF8-group+AF8-id,f+AF8-backup+AF8-set,f+AF8-ntries,f+AF8-job+AF8-name,f+AF8-level,f+AF8-agen
+AD4- t+AF8-name,f+AF8-failed+AF8-copies,f+AF8-restarted+AF8-job,f+AF8-success+AF8-copies,f+AF8-domain+AF8-id,f+AF8-
+AD4- snap+AF8-target,f+AF8-jobid,f+AF8-request+AF8-id,f+AF8-pluginname,f+AF8-sizetransferred,f+AF8-is+AF8-s
+AD4- nap,f+AF8-node+AF8-id,f+AF8-workflow+AF8-id,f+AF8-action+AF8-name,f+AF8-agent+AF8-id,f+AF8-instancename,f+AF8-
+AD4- session,f+AF8-totalobjdedup,f+AF8-changedbytes,f+AF8-sizeboffset,f+AF8-dedupredtn,f+AF8-st
+AD4- atuscodesummary,f+AF8-workflow+AF8-jobid,f+AF8-snap+AF8-policy,f+AF8-size+AF8-copies,f+AF8-sizesca
+AD4- nned,f+AF8-sub+AF8-id,f+AF8-archive+AF8-flag,f+AF8-nfilesnot,f+AF8-media+AF8-wait,f+AF8-snap+AF8-creation,
+AD4- f+AF8-effective+AF8-path) values
+AD4- (+ACQ-1,+ACQ-2,+ACQ-3,+ACQ-4,+ACQ-5,+ACQ-6,+ACQ-7,+ACQ-8,+ACQ-9,+ACQ-10,+ACQ-11,+ACQ-12,+ACQ-13,+ACQ-14,+ACQ-15,+ACQ-16,+ACQ-17,+ACQ-18,+ACQ-19,+ACQ-2
+AD4- 0,+ACQ-21,+ACQ-22,+ACQ-23,+ACQ-24,+ACQ-25,+ACQ-26,+ACQ-27,+ACQ-28,+ACQ-29,+ACQ-30,+ACQ-31,+ACQ-32,+ACQ-33,+ACQ-34,+ACQ-35,+ACQ-36,+ACQ-37,
+AD4- +ACQ-38,+ACQ-39,+ACQ-40,+ACQ-41,+ACQ-42,+ACQ-43,+ACQ-44,+ACQ-45,+ACQ-46,+ACQ-47,+ACQ-48,+ACQ-49,+ACQ-50,+ACQ-51,+ACQ-52,+ACQ-53,+ACQ-54,+ACQ-5
+AD4- 5,+ACQ-56,+ACQ-57,+ACQ-58,+ACQ-59,+ACQ-60,+ACQ-61,+ACQ-62,+ACQ-63,+ACQ-64,+ACQ-65,+ACQ-66,+ACQ-67,+ACQ-68,+ACQ-69,+ACQ-70,+ACQ-71,+ACQ-72,
+AD4- +ACQ-73,+ACQ-74,+ACQ-75,+ACQ-76,+ACQ-77,+ACQ-78)
+AD4-
+AD4- 2024-02-19 15:21:54.851 +-08 +AFs-10928+AF0- DEBUG:  bind +ADw-unnamed+AD4- to
+AD4- +ADw-unnamed+AD4-
+AD4-
+AD4- 2024-02-19 15:21:54.852 +-08 +AFs-10928+AF0- DEBUG:  CommitTransaction(1) name:
+AD4- unnamed+ADs- blockState: STARTED+ADs- state: INPROGRESS, xid/subid/cid: 0/1/0
+AD4-
+AD4- Regards,
+AD4-
+AD4- Venkat
+AD4-
+AD4- +ACo-
+AD4- +ACo-
+AD4-
+AD4- +ACo-
+AD4-
+AD4- Internal Use - Confidential
+AD4-
+AD4- From:+ACo-Greg Sabino Mullane +ADw-htamfids+AEA-gmail.com+AD4-
+AD4- +ACo-Sent:+ACo- Saturday, March 16, 2024 12:07 AM
+AD4- +ACo-To:+ACo- Bandi, Venkataramana - Dell Team
+AD4- +ADw-Venkataramana.Bandi+AEA-dellteam.com+AD4-
+AD4- +ACo-Cc:+ACo- pgsql-general+AEA-lists.postgresql.org+ADs- Kishore, Nanda - Dell Team
+AD4- +ADw-Nanda.Kishore+AEA-Dellteam.com+AD4AOw- Alampalli, Kishore
+AD4- +ADw-Kishoreravishankar.Alampalli+AEA-dellteam.com+AD4-
+AD4- +ACo-Subject:+ACo- Re: Query on Postgres SQL transaction
+AD4-
+AD4- +AFs-EXTERNAL EMAIL+AF0-
+AD4-
+AD4- That's a very vague question, but you can trace exactly what is
+AD4- happening by issuing
+AD4-
+AD4- SET log+AF8-statement +AD0- 'all'+ADs-
+AD4-
+AD4- Ideally at the session level by your application, but can also set it
+AD4- at the database and user level. If all else fails, set it globally (i.e.
+AD4- postgresql.conf). Turn it off again as soon as possible, it will make
+AD4- your logs extremely verbose. But you can track exactly what your
+AD4- application is doing.
+AD4-
+AD4- Cheers,
+AD4-
+AD4- Greg
+AD4-

--
Adrian Klaver
adrian.klaver+AEA-aklaver.com







[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux