Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85186 invoked from network); 26 Jun 2013 09:51:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2013 09:51:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.47 mail-la0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:56903] helo=mail-la0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/30-18025-5B9BAC15 for ; Wed, 26 Jun 2013 05:51:50 -0400 Received: by mail-la0-f47.google.com with SMTP id fe20so13172978lab.6 for ; Wed, 26 Jun 2013 02:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=2ldJ0TroJu7jFzOvxZh3uTkx4PO4Y2saMxujeBNYPt8=; b=NFeGrPhfh96yR0JgVlu1w7U92N3zMknnn20zcJ/XhLaNvxYrT2tcdRjEjOl5qAbMyn onzC6P9oDaOCNDE4f87NqQpZpO+LKNJ0Mx0NfnRW9no+pIyigN61UcsayllPmM8I4LZ5 mAyyPWYgTvk1xr8+f7magRzSviMXqXgoC3IWhRhZCSNAEwmLctahNJlU9WsIYRPACUhP 7BMwUh2mzNgPe1e8iVlSV7KpZGmTBJOkkKxnDxu20x3LGZ0q4lKVMBpKPUnKjHB98Z2C lml9eHyBFriuYiwGmMF4C0GcRkicl1DN4B4jw64qcmWakj/JQumNrXmzTgWzBf/fvHwJ kB0A== X-Received: by 10.112.16.163 with SMTP id h3mr1706988lbd.85.1372240306033; Wed, 26 Jun 2013 02:51:46 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.4.233 with HTTP; Wed, 26 Jun 2013 02:51:05 -0700 (PDT) In-Reply-To: <51CAB115.60602@beccati.com> References: <51CAB115.60602@beccati.com> Date: Wed, 26 Jun 2013 18:51:05 +0900 X-Google-Sender-Auth: 8tFrXn25YCAfW0yoPeIyU8sGcSw Message-ID: To: Matteo Beccati Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c3b4aefcd9e604e00b97f2 Subject: Re: [PHP-DEV] pgsql: Binary data support improvement From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c3b4aefcd9e604e00b97f2 Content-Type: text/plain; charset=ISO-8859-1 Hi Matteo, 2013/6/26 Matteo Beccati > I have mixed feelings... I see where this might come in handy, but I > think it would be a bit too user-unfriendly. > I have mixed feelings for supporting direct binary support, too. Main intension is faster bytea(binary) handling. Without binary support, client has to encode binary via pg_escape_bytea and server decode it before saving bytea data. When selecting, server encode it by using PQescapeByeta algorithm, then client decode it by pg_unescape_bytea. > PDO_pgsql on the other hand, when used with explicit parameter binding, > could automatically use binary format for LOB fields. > AFAIK, PDO doesn't handle bytea data natively. There may be clever usage, but binary support is only for faster bytea handling. API isn't great, so if there are objections, I'll spend time rather than this. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c3b4aefcd9e604e00b97f2--