ste application name for psql command line query

Started by Ahmed MARFOUKalmost 7 years ago3 messagesbugs
Jump to latest
#1Ahmed MARFOUK
marfouk.inforisk@gmail.com

Hi,

Is there a way to set application name to querey with psql command line.

i have a several script shell with psql comman line query and i want to
identify each of them.

Thankx in advance

#2Juan José Santamaría Flecha
juanjo.santamaria@gmail.com
In reply to: Ahmed MARFOUK (#1)
Re: ste application name for psql command line query

On Mon, Jun 3, 2019 at 6:05 PM Ahmed MARFOUK <marfouk.inforisk@gmail.com>
wrote:

Is there a way to set application name to querey with psql command line.

You can customize the psql prompt:

https://www.postgresql.org/docs/current/app-psql.html#APP-PSQL-PROMPTING

The pgsql-admin list is a better fit for questions like this, so please
move the thread there if you need any further assistance.

Regards,

Juan José Santamaría Flecha

#3Ahmed MARFOUK
marfouk.inforisk@gmail.com
In reply to: Juan José Santamaría Flecha (#2)
Re: ste application name for psql command line query

Hi Juan José,

Thanks a lot, that's exactly what im looking for.

Thanks

Le lun. 3 juin 2019 à 16:29, Juan José Santamaría Flecha <
juanjo.santamaria@gmail.com> a écrit :

Show quoted text

On Mon, Jun 3, 2019 at 6:05 PM Ahmed MARFOUK <marfouk.inforisk@gmail.com>
wrote:

Is there a way to set application name to querey with psql command line.

You can customize the psql prompt:

https://www.postgresql.org/docs/current/app-psql.html#APP-PSQL-PROMPTING

The pgsql-admin list is a better fit for questions like this, so please
move the thread there if you need any further assistance.

Regards,

Juan José Santamaría Flecha