Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 1733113C7C39 for ; Sun, 10 Jun 2012 00:19:12 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SdYgI-00033w-Qv for pgsql-jdbc@postgresql.org; Sun, 10 Jun 2012 03:19:11 +0000 Received: by pbbrp8 with SMTP id rp8so4134559pbb.19 for ; Sat, 09 Jun 2012 20:18:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=s9Dj2HK2g+5V3sXtCxP2D+nwq0Sxgnh2btwhRlnq1lw=; b=LTNpRHar6F2C53GuWI+u1SuSLf5S2vyB4nyOWpniaKLrds/pxkDCnoEpc+sfsQ5nZ0 sqKT9qaG+PxVDXj9F76vqzaPX05wl5MNsZb5xC4kLDGjPB1EJ+x6vb5BHG6Olst+/Tko zkDiuu8QQVL6JoF6SQccaWlzq43z156KuTATnyryw/yOyndsiek3Z+N8+4LK9zxJIQ6Q uRKaVelniEf578QFgnkjRJVXJG8S9V7rCwRYgATe1f0qZDzzk4tgz2GEW90AXDEg8gqT zh/EHQCbtmrw8ggMJ9WiVMefGUGWjC7g7uzpISbnToxsZaSDitayejAGDz61ZfZGpIak /lQg== Received: by 10.68.136.106 with SMTP id pz10mr11842655pbb.143.1339298336333; Sat, 09 Jun 2012 20:18:56 -0700 (PDT) Received: from ayaki.localdomain (203-59-174-91.dyn.iinet.net.au. [203.59.174.91]) by mx.google.com with ESMTPS id nv6sm10790010pbc.42.2012.06.09.20.18.53 (version=SSLv3 cipher=OTHER); Sat, 09 Jun 2012 20:18:55 -0700 (PDT) Message-ID: <4FD4121A.3020000@ringerc.id.au> Date: Sun, 10 Jun 2012 11:18:50 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Maciek Sakrejda CC: Tom Lane , Johann 'Myrkraverk' Oskarsson , PostgreSQL JDBC Subject: Re: get/setReadOnly broken if default_transaction_read_only on References: <4FCFB988.2080408@math.purdue.edu> <4FD08767.6000302@ringerc.id.au> <4FD1FA7F.4050400@ringerc.id.au> <11465.1339163239@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmKKBnNlsoi32gNnkd48ylaAP+WGCXuBqbNsqVoVbNYJH20f6ozRKMaWZqmC0xjreQR7aaG X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/39 X-Sequence-Number: 23033 On 06/09/2012 12:52 AM, Maciek Sakrejda wrote: > On Fri, Jun 8, 2012 at 6:47 AM, Tom Lane wrote: >> There already is a mechanism to notify clients of changes in selected >> GUC settings, but currently the set of parameters so reported is >> hard-wired. Possibly pgsql-hackers would consider a proposal to let >> the GUC_REPORT flag get set on client-selected parameters. > Somewhat off-topic, but along the same lines, it would also be worth > considering some mechanism to give the driver visibility into catalog > changes w.r.t. UDTs. I.e., right now, the only way for the driver to > sanely support custom types is to query the catalog for the oid of a > specific type name. However, if that type is subsequently dropped and > re-created and gets a different oid, the driver has no idea. > Unfortunately, I don't think there's a great way to support that > without protocol changes (whereas for the reporting flag, that's not > an issue). Is there currently a page with a list of changes to be included in the next protocol revision? I could've sworn there was one around, but cant' seem to find it. If there isn't, I'll pop one up on the wiki and link to it from the todo. Should put capability flags on the list too. So many difficult decisions about defaults (like the bytea format issue) would be simplified by having clients send a capability flag set. "Yup, I know about 'hex' format bytea." -- Craig Ringer