# Append comments to SQL queries

**URL:** <https://forum.elixirforum.com/t/append-comments-to-sql-queries/42591>\
**Category:** Questions\
**Tags:** ecto, ecto\_sql\
**Created:** [September 24, 2021, 4:12pm UTC](https://forum.elixirforum.com/t/append-comments-to-sql-queries/42591 "2021-09-24T16:12:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hubertlepicki](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/hubertlepicki/32/6822_2.png) [@hubertlepicki](https://forum.elixirforum.com/u/hubertlepicki)\
**Post date:** [June 13, 2023, 8:16am UTC](https://forum.elixirforum.com/t/append-comments-to-sql-queries/42591/3 "2023-06-13T08:16:56Z")

</div>

First thing to check would be if this is even possible. I am assuming you use PostgreSQL since you linked to CloudSQL for postgres, and Ecto uses “binary” protocol to talk to it:

> **[54.1.3. Formats and Format Codes - 54.1. Overview](https://www.postgresql.org/docs/current/protocol-overview.html#PROTOCOL-FORMAT-CODES)**
>
> The protocol has separate phases for startup and normal operation. In the startup phase, the frontend opens a connection to the server and authenticates itself to the satisfaction of the server. (This might involve a single message, or multiple...

And this differs from other clients in several ways, for example in the way that timestamps are returned (always UTC). Being a binary protocol, it may not support comments at all. You should probably check if you can add a comment to `MyApp.Repo.query!(...)` and see if it even gets passed to PostgreSQL before you move any further.

---

_[View the full topic](https://forum.elixirforum.com/t/append-comments-to-sql-queries/42591)._
