Re: [GENERAL] full join question...

2007-09-24 Thread Niklas Johansson
retype IN (1040, 4001); Sincerely, Niklas Johansson ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] unexpected behavior in combining timestamps with times zone and intervals

2007-11-03 Thread Niklas Johansson
ent DateStyle setting, so I had to change the input format. I also added the 'AT TIME ZONE' statement, since my server's in another time zone.) Sincerely, Niklas Johansson ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] installation on Mac OS X 10.5.1

2007-12-22 Thread Niklas Johansson
ay to get to know both your OS and Postgres better. Sincerely, Niklas Johansson ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] limit table to one row

2009-06-04 Thread Niklas Johansson
deleting, you'd have to call a function raising the error in the rule. A minor drawback is that the table still isn't safe from TRUNCATE though. Sincerely, Niklas Johansson -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription:

Re: [GENERAL] CSV files & empty strings

2009-10-26 Thread Niklas Johansson
s on how this could be accomplished? How about: update set = null where = ''; You can also do the update and the column data type change in one fell swoop like so: ALTER TABLE table_name ALTER COLUMN column_name SET DATA TYPE DATE USING NULLIF(column_name, '&#

Re: [GENERAL] How to tell PostgreSQL about a relationship

2008-10-26 Thread Niklas Johansson
info, see the docs: http://www.postgresql.org/docs/8.3/ interactive/ddl-constraints.html#DDL-CONSTRAINTS-FK Sincerely, Niklas Johansson -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql

Re: [GENERAL] postgresql and Mac OS X

2008-10-28 Thread Niklas Johansson
ts, albeit somewhere else? Sincerely, Niklas Johansson -- 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] postgresql and Mac OS X

2008-10-29 Thread Niklas Johansson
ts, albeit somewhere else? Sincerely, Niklas Johansson -- 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] postgresql and Mac OS X

2008-11-04 Thread Niklas Johansson
d definately live in /usr/bin on a normal Mac OS X install. What versions of Mac OS X and the developer tools do you have? Did you make some non-standard choice during the installation of the dev tools? Sincerely, Niklas Johansson -- Sent via pgsql-general mailing list (pgsql-genera

Re: [GENERAL] ORDER BY

2006-11-15 Thread Niklas Johansson
placeholder for not knowing, isn't it?) Sincerely, Niklas Johansson Phone: +46-322-108 18 Mobile: +46-708-55 86 90 ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nom

Re: [GENERAL] Separation of clients' data within a database

2006-12-01 Thread Niklas Johansson
client_id, this time through a function that can only return one client_id.) To conclude: one master schema, one mirrored customer schema that adapts to the db role, one additional table in the master schema to handle the rights. Sincerely, Niklas Johansson Phone: +46-322-1

Re: [GENERAL] Separation of clients' data within a database

2006-12-01 Thread Niklas Johansson
ble structure be implemented in MS SQL or Oracle? As far as I know, yes. (Quite some time since I last had anything to do with either of those. Not that I lament the fact... :-) Sincerely, Niklas Johansson Phone: +46-322-108 18 Mobile: +46-708-55 86 90 ---(en

Re: [GENERAL] SELECT with REAL...

2006-02-06 Thread Niklas Johansson
d vary, depending on the floating point implementation of your system. This is what my implementation does. Sincerely, Niklas Johansson ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] Problem getting plpgsql to choose the right query plan

2006-03-13 Thread Niklas Johansson
new plan to be prepared. http://www.postgresql.org/docs/8.1/interactive/plpgsql- statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN Sincerely, Niklas Johansson ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] full join question...

2006-04-05 Thread Niklas Johansson
Is there anything else you need from the query as well? Mvh, Niklas Johansson Tel: 0322-108 18 Mobil: 0708-55 86 90 ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if yo

Re: [GENERAL] full join question...

2006-04-05 Thread Niklas Johansson
retype IN (1040, 4001); Mvh, Niklas Johansson Tel: 0322-108 18 Mobil: 0708-55 86 90 ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Default directory for postgres user?

2006-07-02 Thread Niklas Johansson
her daemon users. /dev/null should be ok though. Sincerely, Niklas Johansson Phone: +46-322-108 18 Mobile: +46-708-55 86 90 ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org