Re: User's responsibility when using a chain of "immutable" functions?
От
Tom Lane
Тема
Re: User's responsibility when using a chain of "immutable" functions?
Дата
Msg-id
2997974.1656484178@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
User's responsibility when using a chain of "immutable" functions? Bryn Llewellyn <bryn@yugabyte.com>
Re: User's responsibility when using a chain of "immutable" functions? Christophe Pettus <xof@thebuild.com>
Re: User's responsibility when using a chain of "immutable" functions? Laurenz Albe <laurenz.albe@cybertec.at>
Re: User's responsibility when using a chain of "immutable" functions? Christophe Pettus <xof@thebuild.com>
Re: User's responsibility when using a chain of "immutable" functions? Bryn Llewellyn <bryn@yugabyte.com>
Re: User's responsibility when using a chain of "immutable" functions? "David G. Johnston" <david.g.johnston@gmail.com>
Re: User's responsibility when using a chain of "immutable" functions? Bryn Llewellyn <bryn@yugabyte.com>
Re: User's responsibility when using a chain of "immutable" functions? "David G. Johnston" <david.g.johnston@gmail.com>
Re: User's responsibility when using a chain of "immutable" functions? Bryn Llewellyn <bryn@yugabyte.com>
Re: User's responsibility when using a chain of "immutable" functions? "David G. Johnston" <david.g.johnston@gmail.com>
Re: User's responsibility when using a chain of "immutable" functions? Bryn Llewellyn <bryn@yugabyte.com>
Re: User's responsibility when using a chain of "immutable" functions? Pavel Stehule <pavel.stehule@gmail.com>
Re: User's responsibility when using a chain of "immutable" functions? Tom Lane <tgl@sss.pgh.pa.us>
Re: User's responsibility when using a chain of "immutable" functions? Pavel Stehule <pavel.stehule@gmail.com>
Re: User's responsibility when using a chain of "immutable" functions? Tom Lane <tgl@sss.pgh.pa.us>
Re: User's responsibility when using a chain of "immutable" functions? Pavel Stehule <pavel.stehule@gmail.com>
Re: User's responsibility when using a chain of "immutable" functions? "David G. Johnston" <david.g.johnston@gmail.com>
Pavel Stehule writes: > st 29. 6. 2022 v 7:46 odesílatel Tom Lane napsal: >> ... that result has discouraged most people from spending much >> time on mechanically checking such things. If you declare a function >> immutable, Postgres will believe you; the consequences if you lied >> are on your own head. > We cannot ensure that the function is immutable, but we can detect that the > function is not very probably immutable (in execution time). Sure, there are a lot of easy cases where we could say "that's obviously not immutable". But is it worth spending engineering effort and runtime on that? I suspect the cases that people might actually mess up are less obvious, so that we might accomplish little more than offering a false sense of security. regards, tom lane
В списке pgsql-general по дате отправления
От: Pavel Stehule
Дата:
От: Laurenz Albe
Дата: