# SQL Trace Log Oddness

**URL:** <https://clarionhub.com/t/sql-trace-log-oddness/8036>\
**Category:** questions\
**Tags:** sql, postgresql\
**Created:** [March 26, 2025, 5:47pm UTC](https://clarionhub.com/t/sql-trace-log-oddness/8036 "2025-03-26T17:47:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![totalhip](https://clarionhub.com/user_avatar/clarionhub.com/totalhip/32/1477_2.png) [@totalhip](https://clarionhub.com/u/totalhip)\
**Post date:** [March 26, 2025, 5:47pm UTC](https://clarionhub.com/t/sql-trace-log-oddness/8036/1 "2025-03-26T17:47:35Z")

</div>

Why would a trace file NOT include an Insert statement but would include a Delete statement? Both are to the same Postgres table. Test has been repeated multiple times with changes coded to a click of a button.

---

<div class="post-metadata">

**Author:** ![seanh](https://clarionhub.com/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@seanh](https://clarionhub.com/u/seanh)\
**Post date:** [March 26, 2025, 10:51pm UTC](https://clarionhub.com/t/sql-trace-log-oddness/8036/2 "2025-03-26T22:51:04Z")

</div>

The Insert might be recorded a bit further up in the trace. It ends up being a parameterised thing that can get reused.  
Other than that, no idea

---

<div class="post-metadata">

**Author:** ![PurpleEdge2214](https://clarionhub.com/user_avatar/clarionhub.com/purpleedge2214/32/5109_2.png) [@PurpleEdge2214](https://clarionhub.com/u/PurpleEdge2214)\
**Post date:** [March 26, 2025, 10:52pm UTC](https://clarionhub.com/t/sql-trace-log-oddness/8036/3 "2025-03-26T22:52:56Z")

</div>

Define “a trace” - what are you actually doing? What code do you have on your button? Show us the trace.

---

<div class="post-metadata">

**Author:** ![totalhip](https://clarionhub.com/user_avatar/clarionhub.com/totalhip/32/1477_2.png) [@totalhip](https://clarionhub.com/u/totalhip)\
**Post date:** [March 27, 2025, 2:30am UTC](https://clarionhub.com/t/sql-trace-log-oddness/8036/4 "2025-03-27T02:30:15Z")

</div>

Okay, got the Insert sorted. Amazingly helpful to go back and refresh an aging brain on 3 year code, especially when the insert is included in a PG function instead of being in Clarion.
