[GENERAL] exploiting features of pg to obtain polymorphism maintaining ref. integrity

2006-10-06 Thread Ivan Sergio Borgonovo
Is there any good documentation, example, tutorial, pamphlet, discussion... to exploit pg features to obtain polymorphic behavior without renouncing to referential integrity? Inheritance seems *just* promising. Any methodical a approach to the problem in pg context? -- Ivan Sergio Borgonovo

Re: [GENERAL] exploiting features of pg to obtain polymorphism

2006-10-08 Thread Ivan Sergio Borgonovo
explicit mention inheritance. I saw this too, more on the track of what I was looking for, but it wasn't inspirational as I hoped: http://www.varlena.com/varlena/GeneralBits/98.php -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast

Re: [GENERAL] exploiting features of pg to obtain polymorphism

2006-10-08 Thread Ivan Sergio Borgonovo
On Sun, 8 Oct 2006 14:09:53 +0200 Karsten Hilbert [EMAIL PROTECTED] wrote: On Fri, Oct 06, 2006 at 11:09:29PM +0200, Ivan Sergio Borgonovo wrote: Is there any good documentation, example, tutorial, pamphlet, discussion... to exploit pg features to obtain polymorphic behavior without

Re: [GENERAL] Determining caller of a function (due to a cascaded

2006-10-09 Thread Ivan Sergio Borgonovo
generated sp. So I could define deferred referential integrity nearby table definitions as I was used with pk/fk triggers. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] exploiting features of pg to obtain polymorphism

2006-10-12 Thread Ivan Sergio Borgonovo
Resending since it definitively seems it has been lost in outer spaces. Sorry for duplicates if any. On Sun, 8 Oct 2006 14:09:53 +0200 Karsten Hilbert [EMAIL PROTECTED] wrote: On Fri, Oct 06, 2006 at 11:09:29PM +0200, Ivan Sergio Borgonovo wrote: Is there any good documentation, example

Re: [GENERAL] exploiting features of pg to obtain polymorphism

2006-10-16 Thread Ivan Sergio Borgonovo
On Fri, 13 Oct 2006 16:37:42 +0200 Karsten Hilbert [EMAIL PROTECTED] wrote: On Thu, Oct 12, 2006 at 04:40:32PM +0200, Ivan Sergio Borgonovo wrote: Anyway it doesn't solve the problem of having lists that can contain different elements with same parent and maintain ref. integrity. Only

Re: [GENERAL] more anti-postgresql FUD

2006-10-16 Thread Ivan Sergio Borgonovo
Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 6: explain analyze is your friend

[GENERAL] \copy ... with null as '' csv doesn't get nulls

2007-11-25 Thread Ivan Sergio Borgonovo
('') in spite of NULL. Am I missing something or it is a well known feature? thx -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] \copy ... with null as '' csv doesn't get nulls

2007-11-27 Thread Ivan Sergio Borgonovo
AS '' and without it I can't still import NULL without pre-processing. I thought it may be missing total support of UTF-8 or if I did something wrong or it is actually a feature. thx -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast

Re: [GENERAL] \copy ... with null as '' csv doesn't get nulls

2007-11-29 Thread Ivan Sergio Borgonovo
get without NULL AS ''. Correct? If it is I found the documentation a bit misleading. I admit it could be due to not being English mother tongue. thx [1] I did try with '', '', '\\'... -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast

Re: [GENERAL] postgresql table inheritance

2007-11-30 Thread Ivan Sergio Borgonovo
/postgresql_inheritance_surprises -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] PostgresSQL vs Ingress

2007-11-30 Thread Ivan Sergio Borgonovo
be curious to see it happening indeed. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [GENERAL] PostgresSQL vs Ingress

2007-11-30 Thread Ivan Sergio Borgonovo
be curious to see it happening indeed. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] stored procedures and dynamic queries

2007-12-03 Thread Ivan Sergio Borgonovo
then insert into _table (uid, aid, qty) values(_uid,_aid,_qty); end if; end; ' language plpgsql; Is it going to perform worse than with a static table name? Where can I find some clue about the effects of similar decisions? thx -- Ivan Sergio Borgonovo http

Re: [GENERAL] stored procedures and dynamic queries

2007-12-03 Thread Ivan Sergio Borgonovo
On Mon, 03 Dec 2007 19:06:29 + Richard Huxton [EMAIL PROTECTED] wrote: Ivan Sergio Borgonovo wrote: Any general rule about dynamically generated queries in stored procedures vs. performances? It's the same decision as any with any prepared plan vs plan-each-time trade-off. Should I

Re: [GENERAL] stored procedures and dynamic queries

2007-12-04 Thread Ivan Sergio Borgonovo
Functions Still I can't understand some things, I'll come back. thanks for the right pointers. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] stored procedures and dynamic queries

2007-12-04 Thread Ivan Sergio Borgonovo
everything will reach a defined deterministic state after all ;) Note that this is quite old now, so some performance-related assumptions will be wrong for current versions of PG. I noticed. Maybe this will be part of some other question later. -- Ivan Sergio Borgonovo http

[GENERAL] elegant way to fill a table with serial

2007-12-05 Thread Ivan Sergio Borgonovo
, is there any other way to auto-drop sequences when columns get dropped? -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

[GENERAL] elegant way to fill a table with serial

2007-12-05 Thread Ivan Sergio Borgonovo
not null ); insert into temp1 (fk1,ak) select insert into DESTtable2 (pk2,fk1,...) select (pk2,fk1...) from SRC2 join temp1 ... ); alter sequence seq_DESTtable2 RESTART currval('seq_temp1'); But it looks awful. -- Ivan Sergio Borgonovo http://www.webthatworks.it

Re: [GENERAL] simple update on boolean

2007-12-06 Thread Ivan Sergio Borgonovo
? btw set bolean_column= not bolean_column works as expected. template1=# select (not 't'::boolean),(not 'f'::boolean),(not NULL::boolean); ?column? | ?column? | ?column? --+--+-- f| t| (1 riga) -- Ivan Sergio Borgonovo http://www.webthatworks.it

Re: [GENERAL] simple update on boolean

2007-12-06 Thread Ivan Sergio Borgonovo
I would expect since all NULL are converted to t. template1=# select case when NULL then 'f'::boolean else 't'::boolean end; case -- t (1 riga) -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 6: explain

Re: [GENERAL] Query

2007-12-10 Thread Ivan Sergio Borgonovo
); insert into pippo values(7,6); select type_id, count(*) from pippo group by type_id having count(*)=1; 10;1 6;1 2;1 -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 5: don't forget to increase your free space

Re: top posting (was: [GENERAL] Hijack!)

2007-12-11 Thread Ivan Sergio Borgonovo
interesting stuff about Postgres, SQL and DB. [1] In general; commonly; extensively, __though not universally__; most frequently. BTW it is not a case that Computer Science and *Information* Technology are strict relatives -- Ivan Sergio Borgonovo http://www.webthatworks.it

Re: top posting (was: [GENERAL] Hijack!)

2007-12-11 Thread Ivan Sergio Borgonovo
interesting stuff about Postgres, SQL and DB. [1] In general; commonly; extensively, __though not universally__; most frequently. BTW it is not a case that Computer Science and *Information* Technology are strict relatives -- Ivan Sergio Borgonovo http://www.webthatworks.it

Re: [GENERAL] General Q's

2007-12-12 Thread Ivan Sergio Borgonovo
-mysql just to learn from it? What about interesting DB abstraction layers that works with postgres and at least 2 more other DB? -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 1: if posting/reading through Usenet

[GENERAL] why chose pgsql for light CMS was: General Q's

2007-12-12 Thread Ivan Sergio Borgonovo
to python vs. php. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Extract last 4 characters from string?

2007-12-12 Thread Ivan Sergio Borgonovo
On Wed, 12 Dec 2007 15:11:50 -0600 D. Dante Lorenso [EMAIL PROTECTED] wrote: SELECT SUBSTR('ABCDEFGHIJKLMNOP', -4); there is an example in the manual... still regexpyous http://www.postgresql.org/docs/8.1/static/functions-string.html substring('Thomas' from '...$') - mas -- Ivan Sergio

Re: [GENERAL] How can i deal with \n when copy tables from sqlserver2005 to postgre?

2007-12-14 Thread Ivan Sergio Borgonovo
with the same problem mmm 1 month ago. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[GENERAL] referential integrity and defaults, DB design or trick

2007-12-19 Thread Ivan Sergio Borgonovo
design and how to deal with similar problems that has some postgres spice? thx and yep pgsql community is great. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ

Re: [GENERAL] Quick Regex Question

2007-12-20 Thread Ivan Sergio Borgonovo
and you don't want it. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] referential integrity and defaults, DB design or trick

2007-12-20 Thread Ivan Sergio Borgonovo
On Wed, 19 Dec 2007 17:24:52 +0100 Ivan Sergio Borgonovo [EMAIL PROTECTED] wrote: I've something like this: create table i ( iid serial primary key, name varchar(32) ); create table p ( pid serial primary key, iid int references i(iid) on delete cascade

Re: [GENERAL] referential integrity and defaults, DB design or trick

2007-12-20 Thread Ivan Sergio Borgonovo
On Thu, 20 Dec 2007 09:55:29 -0600 Erik Jones [EMAIL PROTECTED] wrote: On Dec 20, 2007, at 8:50 AM, Ivan Sergio Borgonovo wrote: On Wed, 19 Dec 2007 17:24:52 +0100 Ivan Sergio Borgonovo [EMAIL PROTECTED] wrote: I've something like this: create table i ( iid serial primary

Re: [GENERAL] referential integrity and defaults, DB design or trick

2007-12-20 Thread Ivan Sergio Borgonovo
a double meaning. It is cleaner to split the meanings and the data. This will even give me a chance to avoid completely the concept of default property. thanks, I think you put me on the right path. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast

Re: [GENERAL] referential integrity and defaults, DB design or trick

2007-12-22 Thread Ivan Sergio Borgonovo
On Fri, 21 Dec 2007 08:19:08 + Richard Huxton [EMAIL PROTECTED] wrote: Ivan Sergio Borgonovo wrote: The default property (that is actually made by several fields) in my case is not completely homogeneous with the others, because it has a double meaning. It is cleaner to split

[GENERAL] pg_get_serial_sequences still have problems with downcasting

2007-12-24 Thread Ivan Sergio Borgonovo
')); If not any way to make it static and avoid passing one more parameter to the function? thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] batch insert/update

2007-12-26 Thread Ivan Sergio Borgonovo
, not just the changed ones? Is it faster to delete insert or to update? updates comes with the same pk as the destination table. thx -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] batch insert/update

2007-12-26 Thread Ivan Sergio Borgonovo
, not just the changed ones? Is it faster to delete insert or to update? updates comes with the same pk as the destination table. thx -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 6: explain analyze is your friend

[GENERAL] Is there something like MySQL enterprise monitor for Postgres?

2007-12-29 Thread Ivan Sergio Borgonovo
-- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] Is there something like MySQL enterprise monitor for Postgres?

2007-12-29 Thread Ivan Sergio Borgonovo
On Sat, 29 Dec 2007 10:16:50 +0100 Andreas Kretschmer [EMAIL PROTECTED] wrote: Ivan Sergio Borgonovo [EMAIL PROTECTED] schrieb: or/and is there something to spot what are the most critical sql queries/function behind an application? You can set log_min_duration_statement in your

[GENERAL] array as arguments of pg functions and php

2008-01-03 Thread Ivan Sergio Borgonovo
of arguments? I'm going to go with 1) but well it would be nice if I discover something nicer. thx -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 4: Have you searched our list archives? http

[GENERAL] implicit vs. explicit RETURN when OUT is used

2008-01-04 Thread Ivan Sergio Borgonovo
declaring a composite type explicitly? thx -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[GENERAL] Solution: implicit vs. explicit RETURN when OUT is used

2008-01-04 Thread Ivan Sergio Borgonovo
On Fri, 4 Jan 2008 09:38:35 +0100 Ivan Sergio Borgonovo [EMAIL PROTECTED] wrote: create or replace function testA(out _BasketID1 int, out _BasketID2 int) as $$ begin _BasketID1:=1; _BasketID2:=2; return; end; $$ language plpgsql; create or replace function testB(out

Re: [GENERAL] Best free open source ER diagram generator?

2008-01-04 Thread Ivan Sergio Borgonovo
unfaithful without needing it ;) -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] implicit vs. explicit RETURN when OUT is used

2008-01-06 Thread Ivan Sergio Borgonovo
On Sun, 06 Jan 2008 02:47:17 -0500 Tom Lane [EMAIL PROTECTED] wrote: Ivan Sergio Borgonovo [EMAIL PROTECTED] writes: But when I switch to select into _BasketID1,_BasketID2 _BasketID1,_BasketID2 from testA(); nothing get back from testB(). I think you've forgotten that plpgsql variables

Re: [GENERAL] Announcing PostgreSQL RPM Buildfarm

2008-01-07 Thread Ivan Sergio Borgonovo
Cool. How do you sync the power supplies? And thanks for the work. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 6: explain analyze is your friend

[GENERAL] firewall and resource management was: Memory on 32bit machine

2008-01-08 Thread Ivan Sergio Borgonovo
that are already finished in stand by slowing the whole system? I know you can limit requests and let responses run free, but what if they are asking back 1M record with a simple query? thx -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast

[GENERAL] benchmarking update/insert and random record update

2008-01-08 Thread Ivan Sergio Borgonovo
and function reference to objects? thx -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[GENERAL] count(*) and bad design was: Experiences with extensibility

2008-01-09 Thread Ivan Sergio Borgonovo
of such a bad design? Or did you just mean that count(*) is bad design in postgresql since there are usually better alternatives in postgresql? I'm not joking. I'd like to learn. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast

Re: [GENERAL] count(*) and bad design was: Experiences with extensibility

2008-01-09 Thread Ivan Sergio Borgonovo
will incur in the same problem of what exact means. thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL

Re: [GENERAL] count(*) and bad design was: Experiences with extensibility

2008-01-09 Thread Ivan Sergio Borgonovo
advantages plenty pay off the slowness of an operation that in such a context is rare. thanks [1] or does postgres perform as the concurrence once you add where clauses? -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP

Re: [GENERAL] quick question abt pg_dump and restore

2008-01-09 Thread Ivan Sergio Borgonovo
importing a table does it make any sense to pre-sort it before importing it in postgres? -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] count(*) and bad design was: Experiences with extensibility

2008-01-09 Thread Ivan Sergio Borgonovo
on b) would be much appreciated. Other cases require just a yes/no answer. thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] count(*) and bad design was: Experiences with extensibility

2008-01-09 Thread Ivan Sergio Borgonovo
you don't have budgets and hits enough to justify a complex logic to do stats analysis or collect enough stats to make any forecast reasonable. In this context a simpler faster even if less accurate count may be very handy. thanks again -- Ivan Sergio Borgonovo http://www.webthatworks.it

Re: [GENERAL] count(*) and bad design was: Experiences with extensibility

2008-01-09 Thread Ivan Sergio Borgonovo
not concerned of the deleted rows? Just to get an estimate between reindexing cycles, that would be perfect for paging. pg_class does look as returning all the rows. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 1

Re: [GENERAL] Experiences with extensibility

2008-01-09 Thread Ivan Sergio Borgonovo
On Wed, 9 Jan 2008 13:45:10 -0600 Scott Marlowe [EMAIL PROTECTED] wrote: But my account rep told me it was easy, and he'd never lie to me, would he? @_@ If he uses count(*) maybe, otherwise he is locking your $. -- Ivan Sergio Borgonovo http://www.webthatworks.it

Re: [GENERAL] count(*) and bad design was: Experiences with extensibility

2008-01-09 Thread Ivan Sergio Borgonovo
the relative value of count my interest was for something that is even less precise than the usual count but performs better. I'm not proposing to turn Postgres into MySQL. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 9

Re: [GENERAL] count(*) and bad design was: Experiences with extensibility

2008-01-15 Thread Ivan Sergio Borgonovo
returning the same row again). Could you post a snippet of code or something giving a more detailed idea of it? BTW since cursors support offset if you're not interested if the order of the retrieved rows is random too you don't even have to remember which one you read I think. -- Ivan Sergio

[GENERAL] advocacy: drupal and PostgreSQL

2008-01-15 Thread Ivan Sergio Borgonovo
Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [GENERAL] advocacy: drupal and PostgreSQL

2008-01-17 Thread Ivan Sergio Borgonovo
but there are a couple of core dev too that are a bit pissed off about how hard is to support more than 1 DB. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send

Re: [GENERAL] advocacy: drupal and PostgreSQL

2008-01-17 Thread Ivan Sergio Borgonovo
thanks to everybody who listened to the call. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's

[GENERAL] case dumbiness in return from functions

2008-01-17 Thread Ivan Sergio Borgonovo
MUCH more enjoyable. [1] this is documented... is this aw bw bwaa behaviour of functions documented as well? -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please

Re: [GENERAL] case dumbiness in return from functions

2008-01-17 Thread Ivan Sergio Borgonovo
On Thu, 17 Jan 2008 19:07:59 -0500 Tom Lane [EMAIL PROTECTED] wrote: Ivan Sergio Borgonovo [EMAIL PROTECTED] writes: After discovering that pg_get_serial_sequence behaves in a bit strange way[1] when it deals to case sensitiveness The SQL standard specifies that unquoted identifiers

Re: [GENERAL] case dumbiness in return from functions

2008-01-18 Thread Ivan Sergio Borgonovo
understand and have a case preserving pg. In reality I'll take more care with quotations and never post after midnight. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 4: Have you searched our list archives

Re: [GENERAL] PHP and Postgres arrays

2008-01-18 Thread Ivan Sergio Borgonovo
procedure to return the array as a joined row? -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

[GENERAL] example query for postgresql

2008-01-19 Thread Ivan Sergio Borgonovo
weight=subselect._avg from ( select round(avg(weight)) as _avg from system where type='module' ) as subselect where name='users_commerce'; thx -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 3: Have you

[GENERAL] planner and simple vs. complex statement was: example query for postgresql

2008-01-20 Thread Ivan Sergio Borgonovo
to the planner that can then find a better way to achieve it. And yeah... on more complex statement the human can make things worse, writing unnecessary complex sql. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 4: Have you

[GENERAL] setof record out syntax and returning records

2008-01-20 Thread Ivan Sergio Borgonovo
later. I just would like to have an idea of the cost of doing it now. thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] Sun acquires MySQL

2008-01-21 Thread Ivan Sergio Borgonovo
the function route was limiting the number of connections and hiding the underlying structure of the DB to the client application. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner

[GENERAL] Stored procedures when and how: was: Sun acquires MySQL

2008-01-21 Thread Ivan Sergio Borgonovo
writes above can find a tentative place in my mind. But still then I can't understand where plsql should or shouldn't be used. I really would enjoy to see some general guideline on how to chose. thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end

Re: [GENERAL] Best practices for protect applications agains Sql injection.

2008-01-23 Thread Ivan Sergio Borgonovo
in in forms of parameters... so a DB abstraction layer or an ORM should help too... maybe at the cost of some performance. Otherwise you build up your specialised DB AL that assemble queries from prepackaged static parts. -- Ivan Sergio Borgonovo http://www.webthatworks.it

Re: [GENERAL] exporting postgre data

2008-01-25 Thread Ivan Sergio Borgonovo
more comfortable with bcp. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[GENERAL] again on returning records from functions

2008-01-25 Thread Ivan Sergio Borgonovo
http://people.planetpostgresql.org/xzilla/index.php?/archives/149-out-parameter-sql-plpgsql-examples.html#extended Is there any difference in terms of performance and returning rows a bit at a time between myuser2 and myuser3? thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it

[GENERAL] referencing to computed columns in where clause

2008-01-29 Thread Ivan Sergio Borgonovo
; ? Is there anything else I can do to avoid duplication of code? -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] referencing to computed columns in where clause

2008-01-29 Thread Ivan Sergio Borgonovo
On Tue, 29 Jan 2008 17:17:39 + Sam Mason [EMAIL PROTECTED] wrote: On Tue, Jan 29, 2008 at 06:04:48PM +0100, Ivan Sergio Borgonovo wrote: select case when (a3) then a*b when (a3) then a+b end as pippo where pippo12; I've tended to do: SELECT * FROM

Re: [GENERAL] postgresql book - practical or something newer?

2008-01-30 Thread Ivan Sergio Borgonovo
the syntax further and this is what you'd expect as an output. Many things are already there in the VI Reference section but some are not, especially in the V Server programming part. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast

Re: [GENERAL] Mailing list archives/docs project

2008-01-30 Thread Ivan Sergio Borgonovo
. I'm a dev not a DBA so I generally don't collect info about management and tuning. BTW nice drupal website. I'm looking for a drupal web designer. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 3: Have you

Re: [GENERAL] loading files into tables

2008-02-04 Thread Ivan Sergio Borgonovo
being superuser? for a Tab delimiter, should i use \t character? The message should be longer and actually explain what to do. you can \copy or copy from stdin. You could find this helpful: http://www.postgresql.org/docs/techdocs.15 -- Ivan Sergio Borgonovo http://www.webthatworks.it

Re: [GENERAL] [OT] advanced database design (long)

2008-02-04 Thread Ivan Sergio Borgonovo
be happier ;) -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] loading files into tables

2008-02-04 Thread Ivan Sergio Borgonovo
? Are you referring to something like http://www.postgresql.org/docs/8.1/static/sql-copy.html or something like: http://archives.postgresql.org/pgsql-php/2004-02/msg8.php ? -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast

[GENERAL] lazy validation on complex criterion

2008-02-04 Thread Ivan Sergio Borgonovo
... thanks for your thoughts -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] cursor vs. for _row in select...

2008-02-05 Thread Ivan Sergio Borgonovo
to retrieve a small number of rows at a time out of a larger query. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] end of life for pg versions...

2008-02-11 Thread Ivan Sergio Borgonovo
On Mon, 11 Feb 2008 08:46:00 -0500 Christopher Browne [EMAIL PROTECTED] wrote: On Feb 11, 2008 8:04 AM, Ivan Sergio Borgonovo [EMAIL PROTECTED] wrote: I did manage to find an announcement about the support of pg for windows... but I wasn't able to see anything you'd have a summary

Re: [GENERAL] end of life for pg versions...

2008-02-11 Thread Ivan Sergio Borgonovo
with a very bland commitment to the release schedule it could help developers to build up their own schedule and support list too and give some hook for advocacy as well. thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast

[GENERAL] end of life for pg versions...

2008-02-11 Thread Ivan Sergio Borgonovo
I did manage to find an announcement about the support of pg for windows... but I wasn't able to see anything you'd have a summary of scheduled and planned EOL for various pg versions (on different platform). -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end

Re: [GENERAL] end of life for pg versions...

2008-02-12 Thread Ivan Sergio Borgonovo
. Many people aren't used to pg culture and community and oral knowledge of postgresql. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate

Re: [GENERAL] end of life for pg versions...

2008-02-12 Thread Ivan Sergio Borgonovo
On Tue, 12 Feb 2008 16:15:23 -0300 Alvaro Herrera [EMAIL PROTECTED] wrote: Ivan Sergio Borgonovo wrote: Is it just vaporware... maybe... but still there are pros and cons of having a bland schedule for EOL and new releases. We do have a schedule: http://developer.postgresql.org

Re: [GENERAL] end of life for pg versions...

2008-02-12 Thread Ivan Sergio Borgonovo
they still deserve a more prominent place and a less spread distribution. -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] end of life for pg versions...

2008-02-12 Thread Ivan Sergio Borgonovo
On Tue, 12 Feb 2008 11:19:19 -0500 Andrew Sullivan [EMAIL PROTECTED] wrote: On Tue, Feb 12, 2008 at 09:44:30AM +0100, Ivan Sergio Borgonovo wrote: That's why I wrote without making it too formal and bland commitment to the release schedule The problem with doing it that way

[GENERAL] function or temporary table or what?

2008-02-17 Thread Ivan Sergio Borgonovo
Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] dump/restore on different locale

2008-02-27 Thread Ivan Sergio Borgonovo
problems? -- Ivan Sergio Borgonovo http://www.webthatworks.it ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] FROM + JOIN when more than one table in FROM

2008-03-12 Thread Ivan Sergio Borgonovo
shop_commerce_paytypes pt on pm.TypeID=pt.TypeID where b.BasketID=3 I don't even know if it is worth to optimise the above till I'll have a working comparison. thx -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

Re: [GENERAL] FROM + JOIN when more than one table in FROM

2008-03-12 Thread Ivan Sergio Borgonovo
On Wed, 12 Mar 2008 11:48:24 +0100 Martijn van Oosterhout [EMAIL PROTECTED] wrote: On Wed, Mar 12, 2008 at 11:40:18AM +0100, Ivan Sergio Borgonovo wrote: I'd like to make this query work select 1, st.Name, sm.Name, sm.MethodID, sm.Description, pt.Name, pm.Name, pm.MethodID

Re: [GENERAL] postgre vs MySQL

2008-03-12 Thread Ivan Sergio Borgonovo
of performance... I just would like to be contradicted and pointed to some viable (easy?) setup for pgsql, so that I and other people will get rid of this preconception if any. -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

Re: [GENERAL] postgre vs MySQL

2008-03-12 Thread Ivan Sergio Borgonovo
- something that won't suffer too much for replicating writes At a first sight it looks as if pgpool can't boost stuff in pl* functions. -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription

Re: [GENERAL] postgre vs MySQL

2008-03-12 Thread Ivan Sergio Borgonovo
On Wed, 12 Mar 2008 10:26:21 -0700 Scott Marlowe [EMAIL PROTECTED] wrote: On Wed, Mar 12, 2008 at 10:15 AM, Alvaro Herrera [EMAIL PROTECTED] wrote: Ivan Sergio Borgonovo wrote: On Wed, 12 Mar 2008 09:13:14 -0700 paul rivers [EMAIL PROTECTED] wrote: For a database of InnoDB

[GENERAL] functions, replication and portability was: Functional Index Question

2008-03-13 Thread Ivan Sergio Borgonovo
data coherent and sane without doing tons of bookkeeping? -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Recomendations on raid controllers raid 1+0

2008-03-13 Thread Ivan Sergio Borgonovo
to etch and sarge won't have sec support at the end of this month. I'll think it twice before I buy a Dell/LSI controller next time. -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] postgre vs MySQL

2008-03-13 Thread Ivan Sergio Borgonovo
a more informed opinion. I'd say: 1) legacy 2) no particular interest in data integrity/coherence Something more here http://www.postgresql.org/about/casestudies/ and a bit updated would help too. -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Sent via pgsql-general mailing list (pgsql

Re: [GENERAL] postgre vs MySQL

2008-03-14 Thread Ivan Sergio Borgonovo
be interested in coherency/integrity... just on HA etc... Still I'd be curious to know if people can scale pg to several hundreds(?) machines without loosing the features that differentiate it from other DB... -- Ivan Sergio Borgonovo http://www.webthatworks.it -- Sent via pgsql-general mailing list

[GENERAL] aliases and set of record

2008-03-20 Thread Ivan Sergio Borgonovo
records _qty and _ItemID are empty select * from BasketItems(2); this returns what's expected: select _ItemID as __ItemID, _qty as __qty from BasketItems(2,null); What's wrong? Any way to fix it keeping the names of the returned columns consistent? -- Ivan Sergio Borgonovo http

  1   2   3   4   5   6   >