On 18th of July, Robert Haas committed patch:
Avoid index rebuild for no-rewrite ALTER TABLE .. ALTER TYPE. Noah Misch. Review and minor cosmetic changes by me.
Continue reading Waiting for 9.2 – Avoiding reindexing on alter type of indexed column
On 18th of July, Robert Haas committed patch:
Avoid index rebuild for no-rewrite ALTER TABLE .. ALTER TYPE. Noah Misch. Review and minor cosmetic changes by me.
Continue reading Waiting for 9.2 – Avoiding reindexing on alter type of indexed column
Zadzwoniła do mnie żona. Oboje mamy komórki w Erze (tzn. T-Mobile). Nie odebrałem, spadła na pocztę głosową.
OK. Zadzwoniłem na pocztę głosową, odsłuchałem, skasowałem.
W międzyczasie żona wróciła do domu. Chwilę później słyszymy, że jej komórka informuje o SMSie.
Czyta, pokazuje mi, a ja oczom nie wierzę:
Od: Poczta głosowa
Treść: Twoja wiadomosc glosowa, wyslada do mój numer, dnia 16/07 o 00:52, zostala odebrana dnia 16/07 o 01:12.
WHOA?! O ile w tym przypadku to żadna sprawa, o tyle jeśli zdarza mi się od kogoś nieodebrać połączenia, to niekoniecznie chcę by wiedział chwilę potem, że mam przy sobie komórkę i mogę odsłuchać pocztę. Bo np. może zadzwonić jeszcze raz!
Zadzwoniłem do boku, i tam się okazało, że:
Ponieważ rzadko korzystam z komórek w ogóle, a z poczty głosowej w ogóle, ale cenię sobie moją prywatność, to po prostu wyłączyłem w ogóle pocztę głosowę (dla zainteresowanych: “zadzwonić" na numer: ##002#) i po problemie, ale ogólnie mam wrażenie, że mnie to irytuje. Czemu operator decyduje za mnie kto i co ma wiedzieć o mnie? Ja nawet kumam, że taka opcja może być przydatna. I niechby nawet, niech sobie będzie domyślnie włączona. Ale czemu tego nie da się wyłączyć?
Tak czy inaczej – krok za krokiem ograniczam sam sobie funkcjonalność telefonu – nie mam poczty głosowej, wyłączyłem możliwość dodzwonienia się do mnie z zastrzeżonych numerów. Pozostaje tylko pytanie – czy tak naprawdę, w dobie komputerów, skype'a itd, komórka jako przyrząd do rozmawiania ma jeszcze jakiś sens.
Just updated explain.depesz.com site with new functionality – when showing parsed plan, there is new tab “stats". In there you can see some basic statistics of the query, used types of nodes, and tables that were used by it.
There are probably some problems with stats (it's new functionality, so bugs are imminent), but
As usual, some stats need to be added 🙂
Yesterday I talked a bit with David Fetter about improvements in psql. We both would like to get proper stored procedures (with multiple result sets, and transaction control), but since this seems to be too complicated, I thought about what I'd like to have added to psql.
On 6th of July, Robert Haas committed patch:
Add \ir command to psql. \ir is short for "include relative"; when used from a script, the supplied pathname will be interpreted relative to the input file, rather than to the current working directory. Gurjeet Singh, reviewed by Josh Kupershmidt, with substantial further cleanup by me.
For various reasons, and in various cases, bloat happens. Theoretically autovacuum protects us all, but sometimes it doesn't. Sometimes someone disables it, or mis-configures, or bad planet alignment happens, and we end up in deep bloat.
What to do then? Vacuum? Vacuum Full? Cluster? No. pg_reorg!
For todays post in Understanding postgresql.conf series, I chose work_mem parameter.
On 30th of June, Alvaro Herrera committed patch:
Enable CHECK constraints to be declared NOT VALID This means that they can initially be added to a large existing table without checking its initial contents, but new tuples must comply to them; a separate pass invoked by ALTER TABLE / VALIDATE can verify existing data and ensure it complies with the constraint, at which point it is marked validated and becomes a normal part of the table ecosystem. An non-validated CHECK constraint is ignored in the planner for constraint_exclusion purposes; when validated, cached plans are recomputed so that partitioning starts working right away. This patch also enables domains to have unvalidated CHECK constraints attached to them as well by way of ALTER DOMAIN / ADD CONSTRAINT / NOT VALID, which can later be validated with ALTER DOMAIN / VALIDATE CONSTRAINT. Thanks to Thom Brown, Dean Rasheed and Jaime Casanova for the various reviews, and Robert Hass for documentation wording improvement suggestions. This patch was sponsored by Enova Financial.
Every so often someone asks why sorting behaves irrational. Like here:
$ select string from test order by string; string ---------- dean deer de luca depesz de vil dyslexia (6 rows)
Why aren't “de luca" and “de vil" together?
Continue reading Why is “depesz" between “de luca" and “de vil"?