Re: Can't use WITH in a PERFORM query in PL/pgSQL?
От | Pavel Stehule |
---|---|
Тема | Re: Can't use WITH in a PERFORM query in PL/pgSQL? |
Дата | |
Msg-id | CAFj8pRDnSs-pX79a85FGN3Awc-_0xkavMNAMgw6MNvd9bDHA6w@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Can't use WITH in a PERFORM query in PL/pgSQL? (Valentine Gogichashvili <valgog@gmail.com>) |
Ответы |
Re: Can't use WITH in a PERFORM query in PL/pgSQL?
|
Список | pgsql-bugs |
2011/10/20 Valentine Gogichashvili <valgog@gmail.com>: >> >> I suppose you could argue that selecting a value and implicitly throwing >> it away is confusing to novices, but on the other hand I've seen a whole >> lot of novices confused by the need to write PERFORM instead of SELECT. >> I think it wouldn't be an unreasonable thing to just interpret a SELECT >> with no INTO clause as being a PERFORM (ie execute and discard results). >> Then we'd not have to do anything magic for commands starting with WITH. >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0regards, tom lane >> > > it would be really a good idea to allow SELECT without INTO in plpgsql. SELECT without INTO is useless in plpgsql - because you have to drop result. regards Pavel Stehule > PERFORM just makes things much more complicated, without actually adding = any > really working "protection" from misusing SELECT without INTO. > With best regards, > -- Valentin Gogichashvili
В списке pgsql-bugs по дате отправления: