Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkr6y-0001e4-I0 for pgsql-interfaces@arkaria.postgresql.org; Sat, 19 Jan 2019 13:56:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gkr6v-0008FL-Uc for pgsql-interfaces@arkaria.postgresql.org; Sat, 19 Jan 2019 13:56:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkr6v-0008FE-MA for pgsql-interfaces@lists.postgresql.org; Sat, 19 Jan 2019 13:56:33 +0000 Received: from mail-yw1-xc2e.google.com ([2607:f8b0:4864:20::c2e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkr6t-0008R2-UW for pgsql-interfaces@lists.postgresql.org; Sat, 19 Jan 2019 13:56:33 +0000 Received: by mail-yw1-xc2e.google.com with SMTP id k188so6367418ywa.6 for ; Sat, 19 Jan 2019 05:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=9GtZpZh0hxWRIDXgIJx/DY8CgvNQn5GT9DjA36rMKso=; b=pom63rDZD4vVyi8CHI0LqrNhTxWR5xwqJjqdj+3CdSJNBOvHkayIHurrjRoehNnPtA ayFqEH0yDvtmEJvNnCy1PkPtIldF+9v83irNIj06pQ46/DUJL9k95X55oiMVUduZyxO5 k0ztT1YzXiEb61yBHb4yp3GoZlfsIW8R0x0APWHkuoXdk17EGjGm1QUkyD8eOkft86rw wrVPz1N7ifovHbOvnvlJTLsM0mjhehL8SqKBwSN7rrnRxjF0tAVijKmj25AzRhaJWXob FhuvrWifamyVGiFlqR+4IyfaAPFD52Pkn5V6v+ciIYgEA3u4Y9jNLoPAgjg1ULFCySpt qmYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9GtZpZh0hxWRIDXgIJx/DY8CgvNQn5GT9DjA36rMKso=; b=DaHYMJZ+z9d7yS1hIjzqFLNr3QPcarOwtWhMV3UN8lD8bF8QYV/SJIvn1My3e7DqpY sjxrYsmKvjmdMcCuzwBr945BXeV8fCXwUPKXwLdkOTwMabFxG/8r1SoYJ//bVAVk1N8X JPN/QP3hBmuHQcRXt7N3q3LtNHXZjY+AyVtOGTtUFyIHCu18KB3wSo7ckuTNUZv691Qb 4b2ijhbG7wUpVtGco/tGqcR+EWoOoSIjh57DcwiMn+WjCWfc7i4ntfuAIQ9IRf+ox1lY rLSQkwYfMxfjB47YvmwQ4vA3rm4RfqQBHWvKHf7cQu+mDgyZEGN7UeOupBjTvdhi8i/0 ywug== X-Gm-Message-State: AJcUukek5KuRiQ8R7pFjcbk/5t5xl1T006VXW5gJR4XnGFcasmqwGbOr xrUkuRFJTp9I3cp5SU7fmEdx0sVWNVj1zaMooizyzrc= X-Google-Smtp-Source: ALg8bN4mNFXyG8TE60p3/fMVROxZ82Sfbdi7Ctwfq8WO3B6vko4hPgwHjo36mtsXDi2rn5Wlm+X8uEj7+x1ig/LcfWI= X-Received: by 2002:a81:9858:: with SMTP id p85mr21338815ywg.202.1547906189082; Sat, 19 Jan 2019 05:56:29 -0800 (PST) MIME-Version: 1.0 From: Catonano Date: Sat, 19 Jan 2019 14:56:09 +0100 Message-ID: Subject: the wire protocol To: pgsql-interfaces@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000008bc52d057fcffeab" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000008bc52d057fcffeab Content-Type: text/plain; charset="UTF-8" Hello, there's this Python project using the so called wire protocol (as far as I understand) https://github.com/MagicStack/asyncpg I'm caressing the idea to create a GNU Guile based project that does the same thing But I don't understand how they manage to get the connection to Postgresql, their code is too complicated for me Do they use the C library, libpq ? Or do they manage the connection in their own code ? Should I use libpq ? Or should I manage the connection in my own code ? In Guile I can manipulate sockets and the semantics are pretty close to the ones of plain C So even an example in C would be fine I'd like to use a Unix socket I hope this was the right mailing list for this question If it's not, i apologize Thanks in advance --0000000000008bc52d057fcffeab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

ther= e's this Python project using the so called wire protocol (as far as I = understand)


<= div>I'm caressing the idea to create a GNU Guile based project that doe= s the same thing

But I don't understand how th= ey manage to get the connection to Postgresql, their code is too complicate= d for me

Do they use the C library, libpq ?
Or do they manage the connection in their own code ?
=
Should I use libpq ?
Or should I manage the connec= tion in my own code ?

In Guile I can manipulate so= ckets and the semantics are pretty close to the ones of plain C
<= br>
So even an example in C would be fine

I'd like to use a Unix socket

I hope thi= s was the right mailing list for this question

If = it's not, i apologize

Thanks in advance

--0000000000008bc52d057fcffeab--