Posts Tagged ‘plpgsql’

Waiting for 8.4 - CASE in pl/PgSQL

2008-05-16 11:54:27 CEST | No Comments | Tags: , , , ,

Another patch from Pavel Stehule - committed by Tom Lane. This patch adds CASE construction to pl/PgSQL:

- MORE -

Waiting for 8.4 - pl/PgSQL RAISE

2008-05-14 18:01:20 CEST | 2 Comments | Tags: , , , ,

Today we have one new feature - extension of plpgsql’s RAISE command.

- MORE -

MySQL’s timestamp in PostgreSQL

2008-05-08 17:16:43 CEST | 5 Comments | Tags: , , , , , ,

MySQL has this nifty/annoying feature/bug of special data type “TIMESTAMP”. It is like a DATETIME, but it gets automatically updated whenever you modify the row.

I’ll try to add the same feature to PostgreSQL.

- MORE -

Waiting for 8.4 - pg_conf_load_time, time-related generate_series and enum values in \dT+

2008-05-05 09:32:38 CEST | 5 Comments | Tags: , , , , , ,

3 new functionalities from 3 people:

- MORE -

Waiting for 8.4 - RETURN QUERY EXECUTE and cursor_tuple_fraction

2008-05-03 14:52:19 CEST | No Comments | Tags: , , , , ,

Today another two new additions to PostgreSQL - as You can see may commit-fest seems to work pretty good :)

- MORE -

My take on trees in SQL

2008-04-11 17:45:21 CEST | 10 Comments | Tags: , , , ,

Quick note in polish: jeśli znasz moje poprzednie posty nt. drzew, to ten możesz sobie pewnie odpuścić. będzie zawierał jedynie opis implementacji zbliżony do tego co już jest dostępne.

OK, back to English (or at least my version of English).

Finding a good way to store trees in SQL was/is my long-term hobby. I tried ltree, basic adjacency list, Celko’s nested sets way, and nothing really was able to make me feel satisfied.

Ltree is great, but PostgreSQL only (not that it’s a big problem). Adjacency list is very simple in insert, update and delete operations, but forces me to use recursive queries in case of some not-so-standard queries. Nested sets are quite the contrary - great for selects, but I simply hate writing insert/update/delete to these trees.

Is there anything better? I think so.

- MORE -

waiting for 8.4 - current_query()

2008-04-05 12:42:02 CEST | No Comments | Tags: , , , , ,

unfrotunatelly i can’t point you to message in archives, as there is some problem with them, and i dont see posts newer than “Fri Apr 04 12:00:08 2008″.

this patch was written by tomas doran, and commited by bruce momjian:

- MORE -

waiting for 8.4

2008-04-02 14:51:51 CEST | 4 Comments | Tags: , , , , ,

another very interesting addon. pavel stehule wrote, and tom lane commited “execute using” in plpgsql.

- MORE -

waiting for 8.4

2008-03-28 22:56:43 CET | 4 Comments | Tags: , , , , , , ,

another new, cool feature commited by tom lane: “Support statement-level ON TRUNCATE triggers.”

original patch was submitted by simon riggs, and tom commited it today/yesterday (depending on time zone).

- MORE -

getting multiple values from sequences

2008-03-20 13:07:52 CET | 9 Comments | Tags: , , , ,

there are this situations where you need (or you think you need) to get multiple values from sequence.

for example - you’re importing lots of data: some objects, some objects which relate to base objects, and so on.

of course you can do it all with simple inserts, and currval, but it would be rather slow:

- MORE -