pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: rw_redis_fdw: SQL Errors when statement is within a function
Date: Sun, 28 Oct 2018 00:05:50 +0200
Message-ID: <20181027220550.iazefzdbcxf6phy3@squirrel.exwg.net> (raw)
In-Reply-To: <CADep2PPhWwGVJb2YmvbUuQn+AaMXn-Q7SbXHPfSGNbN=1i5NKg@mail.gmail.com>
References: <CADep2PPVOo68kRsC0yDF0X_neUGd8pduTKnmyDp0RSaDajTuEg@mail.gmail.com>
	<20181025101948.r2hsnsm2ysn7q3ic@alap3.anarazel.de>
	<CADep2PN_T+frUJG07oKRJ0DfUALuuoaSbvKq_nposNNaSWjX2w@mail.gmail.com>
	<20181025215749.6yy3aparryceuker@squirrel.exwg.net>
	<CADep2PNC2f57EL8ZtKb999oXvYWNBok74m033xMRG4AFw03fMQ@mail.gmail.com>
	<20181026212725.33rqwraa73wpzq5f@squirrel.exwg.net>
	<CADep2PPhWwGVJb2YmvbUuQn+AaMXn-Q7SbXHPfSGNbN=1i5NKg@mail.gmail.com>

## GPT (gptmailinglists@gmail.com):

> > And the important thing is: there is no guarantee that the same SQL
> > statement will always execute with the same plan:
> + Yes but there should be guarantee that when the statement is free of
> any syntactic error to be executed successfully and return the
> expected result!!!

It does. Only there's often more than one way to get the correct
result; and PostgreSQL picks the plan which looks "best". And just
for the record: you haven't actually claimed that PostgreSQL returns
the wrong result. The only observation you gave was that PostgreSQL
"sometimes" switches the way to get that result. And to that the
answer is "yes, it does".

> + (By the way, I grub the opportunity. I use DBeaver because Admin III
> does not work properly with pg10 and 11 and BECAUSE Admin4 is a
> NIGHTMARE to install it and make it to work (from the point of a
> simple user!!!))

I wouldn't know about that, there are pre-built packages available
for my systems (which I can install with one command). Anyway, I
use psql for about all things PostgreSQL.

> + What else you need from me to help you find out the source of the problem?

First of all, we'd need to see a problem. As long as the correct data
is returned (and/or written), there is no obvious problem. How PostgreSQL
handles your query is for most cases an implementation detail, which
"normal" users can safely ignore.
The only problem we have seen so far was in rw_redis_fdw (and it has
been fixed) - it could not handle all the plans PostgreSQL could use.

Regards,
Christoph

-- 
Spare Space.




view thread (25+ messages)  latest in thread

Message-ID: <20181027220550.iazefzdbcxf6phy3@squirrel.exwg.net>
Permalink:  ../20181027220550.iazefzdbcxf6phy3@squirrel.exwg.net/
Also on:    postgresql.org/message-id/20181027220550.iazefzdbcxf6phy3@squirrel.exwg.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: cmt@burggraben.net
  Subject: Re: rw_redis_fdw: SQL Errors when statement is within a function
  In-Reply-To: <20181027220550.iazefzdbcxf6phy3@squirrel.exwg.net>
  References: <CADep2PPVOo68kRsC0yDF0X_neUGd8pduTKnmyDp0RSaDajTuEg@mail.gmail.com> <20181025101948.r2hsnsm2ysn7q3ic@alap3.anarazel.de> <CADep2PN_T+frUJG07oKRJ0DfUALuuoaSbvKq_nposNNaSWjX2w@mail.gmail.com> <20181025215749.6yy3aparryceuker@squirrel.exwg.net> <CADep2PNC2f57EL8ZtKb999oXvYWNBok74m033xMRG4AFw03fMQ@mail.gmail.com> <20181026212725.33rqwraa73wpzq5f@squirrel.exwg.net> <CADep2PPhWwGVJb2YmvbUuQn+AaMXn-Q7SbXHPfSGNbN=1i5NKg@mail.gmail.com> <20181027220550.iazefzdbcxf6phy3@squirrel.exwg.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox