pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedMeaning of below statement
4+ messages / 4 participants
[nested] [flat]
* Meaning of below statement
@ 2020-11-20 07:45 Srinivasa T N <seenutn@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Srinivasa T N @ 2020-11-20 07:45 UTC (permalink / raw)
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Hi,
I have the following in my log files:
2020-11-20 11:20:46.216 IST [38207] LOG: execute S_1/C_2: SELECT
"gid",encode(ST_AsBinary(ST_Simplify(ST_Force2D("shape"),
14.929338247701526, true)),'base64') as "shape" FROM
"ami_smart_new"."aoi_boundary" WHERE ("sectioncode" IN ('4683', '4587') AND
"sectioncode" IS NOT NULL AND "shape" && ST_GeomFromText('POLYGON
((683696.123647752 989199.9990667417, 683696.123647752 1000723.135701899,
708574.8226023088 1000723.135701899, 708574.8226023088 989199.9990667417,
683696.123647752 989199.9990667417))', 32643))
2020-11-20 11:20:46.218 IST [38207] LOG: execute S_3: ROLLBACK
Does it mean that there was an error in "SELECT ..." and hence internally
postgres executed ROLLBACK??
Regards,
Seenu.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Meaning of below statement
@ 2020-11-20 08:29 David G. Johnston <david.g.johnston@gmail.com>
parent: Srinivasa T N <seenutn@gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: David G. Johnston @ 2020-11-20 08:29 UTC (permalink / raw)
To: Srinivasa T N <seenutn@gmail.com>; +Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
On Friday, November 20, 2020, Srinivasa T N <seenutn@gmail.com> wrote:
> Hi,
> I have the following in my log files:
>
> 2020-11-20 11:20:46.216 IST [38207] LOG: execute S_1/C_2: SELECT
> "gid",encode(ST_AsBinary(ST_Simplify(ST_Force2D("shape"),
> 14.929338247701526, true)),'base64') as "shape" FROM
> "ami_smart_new"."aoi_boundary" WHERE ("sectioncode" IN ('4683', '4587') AND
> "sectioncode" IS NOT NULL AND "shape" && ST_GeomFromText('POLYGON
> ((683696.123647752 989199.9990667417, 683696.123647752 1000723.135701899,
> 708574.8226023088 1000723.135701899, 708574.8226023088 989199.9990667417,
> 683696.123647752 989199.9990667417))', 32643))
> 2020-11-20 11:20:46.218 IST [38207] LOG: execute S_3: ROLLBACK
>
> Does it mean that there was an error in "SELECT ..." and hence internally
> postgres executed ROLLBACK??
>
>
If there was an error you would see an error message. Plus, PostgreSQL
doesn’t just internally issue a rollback on its own. That said I’m not
sure what is being shown, or rather where the “execute” stuff comes from.
David J.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Meaning of below statement
@ 2020-11-20 08:50 Tim Clarke <tim.clarke@minerva.info>
parent: David G. Johnston <david.g.johnston@gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: Tim Clarke @ 2020-11-20 08:50 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
On 20/11/2020 08:29, David G. Johnston wrote:
On Friday, November 20, 2020, Srinivasa T N <seenutn@gmail.com<mailto:seenutn@gmail.com>> wrote:
Hi,
I have the following in my log files:
2020-11-20 11:20:46.216 IST [38207] LOG: execute S_1/C_2: SELECT "gid",encode(ST_AsBinary(ST_Simplify(ST_Force2D("shape"), 14.929338247701526, true)),'base64') as "shape" FROM "ami_smart_new"."aoi_boundary" WHERE ("sectioncode" IN ('4683', '4587') AND "sectioncode" IS NOT NULL AND "shape" && ST_GeomFromText('POLYGON ((683696.123647752 989199.9990667417, 683696.123647752 1000723.135701899, 708574.8226023088 1000723.135701899, 708574.8226023088 989199.9990667417, 683696.123647752 989199.9990667417))', 32643))
2020-11-20 11:20:46.218 IST [38207] LOG: execute S_3: ROLLBACK
Does it mean that there was an error in "SELECT ..." and hence internally postgres executed ROLLBACK??
If there was an error you would see an error message. Plus, PostgreSQL doesn’t just internally issue a rollback on its own. That said I’m not sure what is being shown, or rather where the “execute” stuff comes from.
David J.
Given that PostgreSQL isn't throwing the error, I'd suggest the rollback is from a decision in the front-end application layer.
Tim Clarke MBCS
IT Director
Direct: +44 (0)1376 504510 | Mobile: +44 (0)7887 563420
Telephone: Witham: +44(0)1376 503500 | London: +44 (0)20 3009 0853 | Frankfurt: +49 (0)69 7191 6000 | Hong Kong: +852 5803 1687 | Toronto: +1 647 503 2848
Web: https://www.manifest.co.uk/
Minerva Analytics Ltd - A Solactive Company
9 Freebournes Court | Newland Street | Witham | Essex | CM8 2BL | United Kingdom
________________________________
Copyright: This e-mail may contain confidential or legally privileged information. If you are not the named addressee you must not use or disclose such information, instead please report it to admin@minerva.info<mailto:admin@minerva.info>
Legal: Minerva Analytics is the trading name of: Minerva Analytics Ltd: Registered in England Number 11260966 & The Manifest Voting Agency Ltd: Registered in England Number 2920820 Registered Office at above address. Please Click Here https://www.manifest.co.uk/legal/ for further information.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Meaning of below statement
@ 2020-11-20 15:41 Tom Lane <tgl@sss.pgh.pa.us>
parent: David G. Johnston <david.g.johnston@gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: Tom Lane @ 2020-11-20 15:41 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: Srinivasa T N <seenutn@gmail.com>; PostgreSQL General <pgsql-general@lists.postgresql.org>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Friday, November 20, 2020, Srinivasa T N <seenutn@gmail.com> wrote:
>> 2020-11-20 11:20:46.218 IST [38207] LOG: execute S_3: ROLLBACK
> If there was an error you would see an error message. Plus, PostgreSQL
> doesn’t just internally issue a rollback on its own. That said I’m not
> sure what is being shown, or rather where the “execute” stuff comes from.
The "execute" says this is an execution of a previously prepared query,
ie the client is using extended query protocol rather than simple.
It's got nothing much to do with the semantics though. It seems clear
that the client chose to roll back the transaction; the server did not
do that.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2020-11-20 15:41 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20 07:45 Meaning of below statement Srinivasa T N <seenutn@gmail.com>
2020-11-20 08:29 ` David G. Johnston <david.g.johnston@gmail.com>
2020-11-20 08:50 ` Tim Clarke <tim.clarke@minerva.info>
2020-11-20 15:41 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox