libpq and escaping array string literals

From: Ted Toth <txtoth(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: libpq and escaping array string literals
Date: 2020-03-06 19:11:32
Message-ID: CAFPpqQGxuAsmvONV9DWeBdiLwuJ2YiU8bJsnMsqAWMb4cAhmEg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I've got so C code that interacting with a table containing a field of type
text[]. Strings I've got to put in the array may be unicode and or contain
single or double quotes etc ... What's the best way to escape these
strings?

Ted

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitry Igrishin 2020-03-06 19:40:42 Re: libpq and escaping array string literals
Previous Message Jeremy Schneider 2020-03-06 18:32:07 Re: Real application clustering in postgres.