[GENERAL] Trigger email?

2005-03-01 Thread CSN
Is it possible to setup a trigger so that every time a certain field is changed, an email is sent? Using pl/pgsql. Thanks, CSN __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail

[GENERAL] Can't compile plphp

2005-05-01 Thread CSN
cd src/pl/plphp make && make install I get this error: cp @php_path@/main/php.h ./ cp: cannot stat [EMAIL PROTECTED]@/main/php.h': No such file or directory make: *** [patch] Error 1 Know what the problem is? Thanks, CSN __

[GENERAL] could not load library plperl.so

2005-05-01 Thread CSN
libperl.so: cannot open shared object file: No such file or directory plperl.so does exist in /usr/lib/postgresql (libperl.so does not). I also compiled in plpython, and createlang appeared to work for that. Any idea what the problem is? Thanks, CSN _

Re: [GENERAL] could not load library plperl.so

2005-05-01 Thread CSN
--- Tom Lane <[EMAIL PROTECTED]> wrote: > CSN <[EMAIL PROTECTED]> writes: > > createlang: language installation failed: ERROR: > > could not load library > > "/usr/lib/postgresql/plperl.so": libperl.so: > cannot > > open shared object file: No

[GENERAL] plpythonu and dollar quoting

2005-05-03 Thread CSN
t of) backslashes in the python code then the function gets created fine. CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---(end of broadcast)-

Re: [GENERAL] plpythonu and dollar quoting

2005-05-03 Thread CSN
Nevermind, I see dollar-quoting was added in 8.0. --- CSN <[EMAIL PROTECTED]> wrote: > Can dollar quoting be used with plpythonu (like with > plperl - > http://www.postgresql.org/docs/8.0/interactive/plperl.html#PLPERL-FUNCS)? > When trying to create a function I get this e

[GENERAL] plpythonu and booleans

2005-05-04 Thread CSN
When accessing Postgres boolean fields (in the TD dictionaries) in plpythonu, their values are '0' or '1'. IIRC, in PHP their values would be 't' or 'f'. How are boolean values actually stored in Postgres? CSN Discover Yahoo! Stay in

[GENERAL] Booleans - Why in Postgres and not in Oracle or Mysql?

2005-05-05 Thread CSN
I like Postgres's boolean type - why do you suppose neither Mysql nor Oracle has bothered to implement it? Booleans are in the SQL-99 spec. CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yaho

Re: [GENERAL] Booleans - Why in Postgres and not in Oracle or Mysql?

2005-05-05 Thread CSN
le 10 has a bit > data type (which is a > boolean for all intents and purposes): Could a bit handle NULL's though? CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --

[GENERAL] plphp1.1 make fails

2005-05-06 Thread CSN
e[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/local/src/postgresql-8.0.2/src' make: *** [all] Error 2 Know what the problem is? Thanks, CSN Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html -

[GENERAL] Locale C?

2005-05-19 Thread CSN
I'm installing PG8 for Windows and the default locale is "C" in the installer. What is locale C? CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---

[GENERAL] More detailed error logging?

2005-05-25 Thread CSN
Is it possible to have the database name, datetime, and maybe even the query itself show up in pgsql's error log? Thanks, CSN __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/reso

[GENERAL] plpython error since upgrading from 7.x to 8.x

2005-05-25 Thread CSN
n. Any idea what the problem is? Thanks, CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---(end of broadcast)--- TIP 9: the planner will i

Re: [GENERAL] plpython error since upgrading from 7.x to 8.x

2005-05-25 Thread CSN
.. """ server = smtplib.SMTP("localhost") server.set_debuglevel(1) server.sendmail(fromaddr, toaddr, msg) server.quit() # I also recently switched to Dbmail, so maybe that caused a problem (but mail works fine with everyt

Re: [GENERAL] plpython error since upgrading from 7.x to 8.x

2005-05-25 Thread CSN
Ah, you're right. The function appears to only cause an error on inserts and not updates. Thanks for pointing that out (I'm really green at Python). CSN --- Michael Fuhr <[EMAIL PROTECTED]> wrote: > On Wed, May 25, 2005 at 12:02:22PM -0700, CSN wrote: > > > >

[GENERAL] Setting global vars for use with triggers

2005-06-22 Thread CSN
d use? I'm using PHP for the trigger (and PG 8.x). Thanks, CSN PS - Scott and I have been tossing around a few other ideas here: http://www.phpbuilder.com/board/showthread.php?s=&threadid=10302693 Yahoo! Sports Rek

[GENERAL] Finding points within 50 miles

2005-06-26 Thread CSN
If I have a table of items with latitude and longitude coordinates, is it possible to find all other items that are within, say, 50 miles of an item, using the geometric functions (http://www.postgresql.org/docs/8.0/interactive/functions-geometry.html)? If so, how? Thanks, CSN

[GENERAL] pg_dump - dump specific functions and other items?

2005-08-03 Thread CSN
Is it possible to dump specific function definitions using pg_dump? Any other items that can be specifically dumped, besides just tables? Thanks, CSN Start your day with Yahoo! - make it your home page http://www.yahoo.com/r

[GENERAL] Internal catalogs error in log file

2005-08-03 Thread CSN
_catalog.cstring'::pg_catalog.regtype AND p.proargtypes[0] <> 'pg_catalog.cstring'::pg_catalog.regtype AND NOT p.proisagg AND pg_catalog.pg_function_is_visible(p.oid) AND p.proname ~ '^+$' ORDER BY 1, 2, 3, 4; I

[GENERAL] untrusted languages and non-global superusers?

2005-08-03 Thread CSN
a user for a specific database? All I'm familiar with is "alter user joe createuser." Or is there a better way of handling this language and permission issue? (The function uses mail(), so IIRC that necessitates using plphpu). Thanks, CSN

Re: [GENERAL] untrusted languages and non-global superusers?

2005-08-03 Thread CSN
--- Tom Lane <[EMAIL PROTECTED]> wrote: > CSN <[EMAIL PROTECTED]> writes: > > I'm using plphpu and I'd like to allow the regular > > database user to use it, but since it's > "untrusted" it > > requires users to be superusers. If I h

Re: [GENERAL] untrusted languages and non-global superusers?

2005-08-04 Thread CSN
nience! I want the email sent whether the member is added via the web interface, directly in the database, from the command line, etc. I don't see any downside. It's only one user that'll be using this function. CSN __ Do You Yahoo!?

Re: [GENERAL] untrusted languages and non-global superusers?

2005-08-04 Thread CSN
with a small script > which > basically LISTENs to notify from database, spools > the > mails and go sleep again. Could you elaborate how you do this? IIRC, there's an example in the docs using C, but I'd prefer using a scripting language. Thanks, CSN

[GENERAL] Getting actual number of rows updated

2005-08-08 Thread CSN
Is it possible to have PG report the actual number of rows that actually CHANGED in an update command? e.g. UPDATE items set name=replace(name,'abc','def'); UPDATE 9000 -- Actually only 3 were changed rather than update reporting all rows have been &qu

[GENERAL] NOTIFY/LISTEN, PHP, rule vs. trigger, blocking, missed NOTIFY's

2005-08-09 Thread CSN
PG's docs on notify say that if events happen in rapid succession, notify's might get dropped. For example: could many item rows get deleted, but some of their corresponding files not get deleted due to dropped notify's? Thanks, CSN

[GENERAL] ERROR: plphp: unable to register function "plphp_proc_4947785_trigger"

2005-08-11 Thread CSN
ied that plphp (and plphpu) is installed with 'createlang -l'. Any idea what the problem is? Thanks, CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

[GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread CSN
-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in plphp trigger call on line 1 Is there anything I can do about it? I'd email plphp's list, but their mailing list links a

Re: [GENERAL] ERROR: plphp: unable to register function "plphp_proc_4947785_trigger"

2005-08-11 Thread CSN
Nevermind, I found some stray single quotes (in an array var) in a double-quoted string that appears to have been the problem. --- CSN <[EMAIL PROTECTED]> wrote: > I'm using plphp to create a trigger. I don't see any > syntax errors in it (I've checked it with php -l

[GENERAL] plphp crashing server

2005-08-11 Thread CSN
reset: Failed. And this is what shows up in the log: LOG: server process (PID 31665) was terminated by signal 11 LOG: terminating any other active server processes Wow. I still don't see anything wrong with the plphp function - how could it cause the entire server to crash? Thanks

Re: [GENERAL] plphp crashing server

2005-08-11 Thread CSN
Jeez, nevermind again! Turns out this was the problem in the plphp script: $sql="select * from table where id=123"; $result=spi_exec_query($sqll); I'm still curious about the "Call-time pass-by-reference has been deprecated" warning if anybody knows. Thanks, CSN

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread CSN
I'm using PHP5, and I'm not passing by reference. My first stop WAS plphp.commandprompt.com, but none of their mailing list links for plphp work. CSN > # jd ( at ) commandprompt ( dot ) com / 2005-08-11 15:45:18 -0700: > > Roman Neuhauser wrote: > > ># cool_screen_

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread CSN
$message=<<"; mail($to, "Link Activated - $group[name]!", $message, "From: {$group[name]} <$group[email]>\r\n"); } } } $$ LANGUAGE 'plphpu'; -- CREATE TRIGGER email_activated_member AFTER INSERT or UPDATE ON links

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread CSN
og. I'd guess maybe it's something plphp is doing on its own with references, but I should probably play around with some more plphp functions and see if they generate the same warnings. Anyhow, thanks for the help. CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[GENERAL] Removing tsearch2 from a database

2005-08-13 Thread CSN
Greetings- How can I remove tsearch2 (all its tables, types, functions, etc.) from a database? Thanks, CSN Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ---(end of

[GENERAL] Apostrophe doesn't show up in command line

2005-08-14 Thread CSN
In a field I have text like "in today's news..." When I select that field in psql using putty (Latin-1), then apostrophe doesn't show up (shows up as "todays"), but it does show up in phppgadmin (and other php programs). Is this an issue with psql, or putty (or

[GENERAL] Removing -'s (header) before records in psql

2005-08-14 Thread CSN
ls ..

Re: [GENERAL] Apostrophe doesn't show up in command line

2005-08-15 Thread CSN
--- Richard Huxton wrote: > CSN wrote: > > In a field I have text like "in today's news..." > When > > I select that field in psql using putty (Latin-1), > > then apostrophe doesn't show up (shows up as > > "todays"), but it does sh

[GENERAL] converting curly apostrophes to standard apostrophes

2005-08-15 Thread CSN
n the database. Thanks, CSN Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ---(end of broadcast)--- TIP 3: Have you checked our extensiv

Re: [GENERAL] Apostrophe doesn't show up in command line

2005-08-15 Thread CSN
Ah, it's Western ISO-8859-1. Putty has the same setting. I tried changing putty's charset to UTF-8 and now curly apostrophes are displayed as a grey box in psql's output (e.g. "in today[box]s news..."). Thanks, CSN --- Richard Huxton wrote: > CSN wrote: > >

Re: [GENERAL] converting curly apostrophes to standard apostrophes

2005-08-15 Thread CSN
--- Michael Fuhr <[EMAIL PROTECTED]> wrote: > On Mon, Aug 15, 2005 at 12:14:16PM -0700, CSN wrote: > > Is there a way to replace all curly apostrophes > with > > standard apostrophes (presumably with > replace(x,y,z))? > > My database is SQL_ASCII and I can't

Re: [GENERAL] converting curly apostrophes to standard apostrophes

2005-08-15 Thread CSN
--- Michael Fuhr <[EMAIL PROTECTED]> wrote: > On Mon, Aug 15, 2005 at 01:48:00PM -0700, CSN wrote: > > db=>select ascii('’'); > > ascii > > --- > >226 > > > > db=>select id from news where body ilike '%’%'; > &

[GENERAL] Suggestion for Date/Time Functions Section

2005-08-19 Thread CSN
x27;2001-09-28' + ((7+7)||' seconds')::interval); etc. Or am I missing an easier way to do date arithmetic using a table's fields as part of the equation? (I think mysql has date_add(...), date_subtract(...), etc. CSN __ Do Yo

[GENERAL] selecting rows older than X, ensuring index is used

2005-08-20 Thread CSN
a way to rewrite this query so the index is used? Thanks, CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] history is not supported by this installation

2005-08-21 Thread CSN
t that was in cygwin/path - what's the remedy to get \s to work? BTW, is there a way to set the number of commands returned by "\s"? Thanks, CSN Start your day with Yahoo! - make it y

[GENERAL] POSS. FEATURE REQ: "Dynamic" Views

2005-08-25 Thread CSN
For lack of a better term, but I was curious if there is/was any thought about making PG's views automatically "see" changes in underlying tables, as opposed to currently having to drop/create all corresponding views if a table's structure (add/delete fields, et

[GENERAL] About dropped notifications

2005-08-29 Thread CSN
y row (and subsequently be able to delete that row's files), or will only one notify event be received (or some number less than the actual number of rows deleted)? Thanks, CSN Start your day with Yahoo!

[GENERAL] Deferred triggers?

2005-08-31 Thread CSN
er or not there is a transaction in progress.) CSN Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] Deferred triggers?

2005-09-04 Thread CSN
> CSN wrote: > > Perhaps another possible feature request! I've looked > > through the docs and it doesn't appear that it's > > possible to create deferred triggers - i.e. they don't > > get called unless the current transaction commits.

[GENERAL] Utility that creates table schema from csv data?

2005-09-12 Thread CSN
rmine what data types each field should be? Thanks, CSN __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ---(end of broadcast)--- TIP 9: In versions below 8.0, the pl

[GENERAL] character varying == text?

2005-09-15 Thread CSN
Just something I was curious about - is there any difference at all between "character varying" (in the SQL spec) without a length specified and "text" (not in the SQL spec)? Thanks, CSN __ Yahoo! Mail - PC Magazine Editor

[GENERAL] Preventing duplicate records according to several fields

2005-09-20 Thread CSN
e the database automatically handle this (trigger to compute hash field at insert time - unique index will raise an exception). Thanks for any help, insights, suggestions, etc. CSN __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.

[GENERAL] index row size exceeds btree maximum

2005-09-21 Thread CSN
, 2713 CONTEXT: SQL statement "insert into stuff (title, yield, directions) values ( $1 , $2 , $3 )" What do I do? Thanks, CSN __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ---(e

Re: [GENERAL] index row size exceeds btree maximum

2005-09-21 Thread CSN
--- Scott Marlowe <[EMAIL PROTECTED]> wrote: > On Wed, 2005-09-21 at 15:02, CSN wrote: > > This appears related to my previous post: > > > http://archives.postgresql.org/pgsql-general/2005-09/msg00809.php > > > > I setup a unique index using the title, yi

[GENERAL] Finding (and deleting) dupes in relation table

2005-09-22 Thread CSN
I have a table that relates id's of two other tables: table1id, table2id Dupes have found their way into it (create unique index across both fields fails). Is there a quick and easy way to find and delete the dupes (there are tens of thousands of records)? Thanks

Re: [GENERAL] Finding (and deleting) dupes in relation table

2005-09-22 Thread CSN
Nevermind, figured it out: select distinct on (table1id, table2id) * into temp from table3; delete from table3; insert into table3 select * from temp; --- CSN <[EMAIL PROTECTED]> wrote: > I have a table that relates id's of two other > tables: > > table1id, table2i

[GENERAL] Function keys cause psql to segfault

2005-09-25 Thread CSN
d it using WinXP's command prompt and none of the function keys cause psql to segfault. CSN __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---(e

Re: [GENERAL] Function keys cause psql to segfault

2005-09-25 Thread CSN
Here's what 'od -c' shows for F1-4: ^[OP^[OQ^[OR^[OS CSN --- Bruce Momjian wrote: > CSN wrote: > > If I'm in psql (via putty, from WinXP to Redhat) > and > > hit F1-4 (F5+ just display a ~), psql will > > segmentation fault and exit. Not that I&#x

Re: [GENERAL] Function keys cause psql to segfault

2005-09-25 Thread CSN
I did 'strace psql dbname' and this was the output after hitting F1: read(0, "\33", 1) = 1 read(0, "O", 1) = 1 read(0, "P", 1) = 1 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ k

Re: [GENERAL] Function keys cause psql to segfault

2005-09-25 Thread CSN
Hmm, all I could think of was perl and php - hitting F1-4 just caused these chars to be displayed (the interpreters didn't exit): ^[OP^[OQ^[OR^[OS CSN --- Bruce Momjian wrote: > Tom Lane wrote: > > Bruce Momjian writes: > > > CSN wrote: > > >> If I&

Re: [GENERAL] Function keys cause psql to segfault

2005-09-25 Thread CSN
It looks like I had readline 4.3 installed. I just installed readline 5.0 - the F1-4 keys still cause psql to segfault. (AFAIK I don't need to recompile postgres for psql to use the newly installed readline). CSN --- Tom Lane <[EMAIL PROTECTED]> wrote: > CSN <[EMAIL PROTECTE

Re: [GENERAL] Function keys cause psql to segfault

2005-09-25 Thread CSN
here are also options for "VT400", "VT100+", and "SCO" - haven't tried those). Thanks, CSN --- Klint Gore <[EMAIL PROTECTED]> wrote: > On Sun, 25 Sep 2005 20:00:03 -0700 (PDT), CSN > <[EMAIL PROTECTED]> wrote: > > > > I did 'strace psq

[GENERAL] PostgreSQL 8.1 vs. MySQL 5.0?

2005-10-05 Thread CSN
Just so I know (and am armed ;) ), are there any new comparable features in MySQL 5.0 that aren't in PostgreSQL up to the forthcoming 8.1? AFAIK, PG just lacks updatable views (which are on the TODO). MySQL 5.0 new features http://dev.mysql.com/doc/mysql/en/mysql-5-0-nutshell.html Thanks

Re: [GENERAL] PostgreSQL 8.1 vs. MySQL 5.0?

2005-10-05 Thread CSN
I'm not sure what XA (distributed transactions) is - is that something that can be achieved with Slony? CSN --- "Joshua D. Drake" <[EMAIL PROTECTED]> wrote: > On Wed, 2005-10-05 at 18:37 -0700, CSN wrote: > > Just so I know (and am armed ;) ), are there any &g

Re: [GENERAL] PostgreSQL Gotchas

2005-10-06 Thread CSN
I consider "select as" to be really trivial (and it appears a work-around can be hacked). - lowercase folding. I DO sometimes wish I could use fieldID, etc. without quoting it. - I've never found count(*) to be slow. - I don't know enough about the "UNICODE me

Re: [GENERAL] PostgreSQL 8.1 vs. MySQL 5.0?

2005-10-06 Thread CSN
ble partitions? Or Slony? CSN __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] PostgreSQL 8.1 vs. MySQL 5.0?

2005-10-06 Thread CSN
--- Scott Marlowe <[EMAIL PROTECTED]> wrote: > On Wed, 2005-10-05 at 23:41, Tom Lane wrote: > > "Joshua D. Drake" <[EMAIL PROTECTED]> writes: > > > On Wed, 2005-10-05 at 18:37 -0700, CSN wrote: > > >> Just so I know (and am armed ;) ), are the

Re: [GENERAL] PostgreSQL Gotchas

2005-10-06 Thread CSN
--- CSN <[EMAIL PROTECTED]> wrote: > - 8 of the 13 are for versions of PostgreSQL <= 8.1 Doh! - 8 of the 13 are for versions of PostgreSQL < 8.1! __ Yahoo! Mail - PC Magazine Editors' Choice 2005 h

Re: [GENERAL] PostgreSQL Gotchas

2005-10-06 Thread CSN
Yep, I think the SQL spec says fold to uppercase. I'm not sure why PostgreSQL folds to lowercase instead, but if folding has to occur, I prefer lowercase. CSN --- "Jim C. Nasby" <[EMAIL PROTECTED]> wrote: > On Thu, Oct 06, 2005 at 12:54:43PM -0700, CSN wrote: >

Re: [GENERAL] PostgreSQL 8.1 vs. MySQL 5.0?

2005-10-06 Thread CSN
I had a similar experience speaking to the MySQL folks at (the last) COMDEX. After trying to get them to explain how their licenses work, I was even more confused (and two reps even gave conflicting info). CSN > Hi everyone, > > I've just got back from LinuxWorld in London a

Re: [GENERAL] PostgreSQL 8.1 vs. MySQL 5.0?

2005-10-08 Thread CSN
AP # InnoDB # BDB or BerkeleyDB Tables # Example # Archive # Federated # CSV # Blackhole # NDB Cluster http://dev.mysql.com/doc/mysql/en/storage-engines.html CSN __ Yahoo! Music Unlimited Access over 1 million songs. Try it

[GENERAL] Duplicate primary keys/rows

2005-10-09 Thread CSN
dows XP. This computer has been crashing repeatedly lately, if that could be blamed (bad memory? hard disk? I haven't quite figured out why.) Using phppgadmin, I was able to delete one of the duplicate rows (there are several) - don't know how i

Re: [GENERAL] Oracle buys Innobase

2005-10-09 Thread CSN
Look what somebody suggested! --- If the worst happens and Oracle tries to squash InnoDB, there may already be such an alternative out there. I wonder what it would take to add (and optimize) Postgres storage engine support to MySQL? I don't know exact

Re: [GENERAL] Oracle buys Innobase

2005-10-09 Thread CSN
Yep, those were two of my very first questions too. ;) CSN --- "Marc G. Fournier" <[EMAIL PROTECTED]> wrote: > > Stupid question, but what does MySQL bring to the > equation? Why not just > use PostgreSQL in the first place? > > On Sun, 9 Oct 2005, CS

Re: [GENERAL] Duplicate primary keys/rows

2005-10-10 Thread CSN
--- Michael Fuhr <[EMAIL PROTECTED]> wrote: > On Sun, Oct 09, 2005 at 12:46:51PM -0700, CSN wrote: > > select * from table1 where id=586; > > 586|a|b|c|d > > Do you get different results from the following > queries? > > SET enable_seqscan TO on; > SET e

Re: [GENERAL] Duplicate primary keys/rows

2005-10-10 Thread CSN
o determine how badly it lies. ;) Thanks, CSN --- Tom Lane <[EMAIL PROTECTED]> wrote: > CSN <[EMAIL PROTECTED]> writes: > > oid | ctid| xmin | cmin | xmax | > cmax | id > > > +---+-+--+-+--+- > >

[GENERAL] Dumb question about serial's upper limit

2005-10-10 Thread CSN
If integer's range is -2147483648 to +2147483647, why is serial's range only 1 to 2147483647 instead of 1 to about 4294967294? CSN __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com

Re: [GENERAL] Dumb question about serial's upper limit

2005-10-10 Thread CSN
--- Tom Lane <[EMAIL PROTECTED]> wrote: > CSN <[EMAIL PROTECTED]> writes: > > If integer's range is -2147483648 to +2147483647, > why > > is serial's range only 1 to 2147483647 instead of > 1 to > > about 4294967294? > > How are you goin

[GENERAL] more than one row returned by a subquery used as an expression

2005-10-13 Thread CSN
tries table are return (I expected an error). Is this the "implicit FROM" gotcha? CSN __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ ---

Re: [GENERAL] Oracle buys Innobase

2005-10-14 Thread CSN
There are some articles on eweek about this: Oracle Finds the Flaw in MySQL's Business Plan http://www.eweek.com/article2/0,1895,1869989,00.asp "This is what Oracle says in its release: "InnoDB's contractual relationship with MySQL comes up for renewal next year. Oracle fully expects to negotiate

[GENERAL] Anybody using PostGIS?

2005-10-16 Thread CSN
I've been meaning to try out PostGIS and see what it is capable of. Is anybody using it? Do you have accompanying URLs? Thanks, CSN __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unli

Re: [GENERAL] Duplicate primary keys/rows

2005-10-18 Thread CSN
I don't know if I'm going to get a copy of pg_filedump. What's the best way to fix this - dump then restore? CSN --- Tom Lane <[EMAIL PROTECTED]> wrote: > CSN <[EMAIL PROTECTED]> writes: > > oid | ctid| x

[GENERAL] update trigger not working

2005-10-19 Thread CSN
perhaps NULL's in OLD.stuff is causing the IF to behave other than what I expect. Thanks for any help! CSN CREATE or REPLACE function update_ts() returns trigger as $end$ BEGIN IF (TG_OP='UPDATE') THEN IF (OLD.stuff != NEW.stuff) THEN UPDATE tabl

[GENERAL] NULL != text ?

2005-10-19 Thread CSN
s NOT NULL) or (OLD.value != NEW.value)) THEN -- END IF; So, does NULL != 'abc' always evaluate to false? The manual (http://www.postgresql.org/docs/8.0/interactive/functions-comparison.html) states don't compare NULL values using =, but nothing

Re: [GENERAL] NULL != text ?

2005-10-20 Thread CSN
BTW, it (the SQL spec I presume) has always seemed contradictory to me that you can't do: select * from table where field=null; but can do: update table set field=null; (as opposed to 'update table set field to null' or

[GENERAL] How much slower are numerics?

2005-10-21 Thread CSN
ith potentially different sizes)? Thanks, CSN __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com ---(end of broadcast)--- TIP 4: Have you searched ou

Re: [GENERAL] pg_dump with low priority?

2005-10-24 Thread CSN
nice comes to mind: nice pg_dump ... On Sat, 2005-10-22 at 07:39, Bryan Field-Elliot wrote: > We have a huge database which must be backed up every day with > pg_dump. The problem is, it takes around half an hour to produce the > dump file, and all other processes on the same box are starved f

Re: [GENERAL] PostgreSQL 8.1 vs. MySQL 5.0?

2005-10-30 Thread CSN
Here are some apparent problems with MySQL 5.0: - Concurrent ALTER TABLE - Replicated Session Variables and Concurrent ALTER TABLE - BIT indexing that [doesn't] actually uses a BIT! - SELECT * FROM FOO WHERE ID IN ( SELECT FOO_ID FROM BAR ) [doesn't use index] http://www.feedblog.org/2005/10/what

[GENERAL] trapping errors in plpgsql?

2005-10-31 Thread CSN
, CSN __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choo

[GENERAL] sequence aliases?

2005-11-05 Thread CSN
omatically access the sequence. I don't like this as it may break other things. Is there a way to create an alias or something (e.g. quotes_seq_id points to quotes_table_seq_id), or is there a better way? Thanks, CSN __ Yahoo! Mai

Re: [GENERAL] sequence aliases?

2005-11-06 Thread CSN
pg_get_serial_sequence( > 'table','col' ) ); I like that better than the current 'table_col_seq'. Perhaps just currval('table', 'col'). Or perhaps tables could be made to have a default sequence (one that's associated with the primary key). CSN

[GENERAL] postgres: unknown hard error

2005-11-12 Thread CSN
err'). Any way to further diagnose this? thanks csn __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] Does PG Support Unicode on Windows?

2005-11-16 Thread CSN
t; Having defended the undefendable, however, I'd like to know if > > postgresql really still doesn't support Unicode on windows, as > > I plan to develop on WindowsXP and deploy on Linux. > > > > Warren Seltzer Thread here: http://www.ruby-forum.com/topic/3690#new

[GENERAL] not null error in trigger on unrelated column

2005-11-21 Thread CSN
s after changing a table's schema? I don't know how something is trying to set members.admin to null (table members has no triggers). thanks csn Postgresql 8.0.x __ Yahoo! FareChase: Search multiple travel sites in one click. http://fa

Re: [GENERAL] not null error in trigger on unrelated column

2005-11-22 Thread CSN
h, and now they both appear to function properly. I don't remember seeing anything in the docs stating that this is necessary, so I guess perhaps it's a bug? csn --- CSN <[EMAIL PROTECTED]> wrote: > I have a members table and an items table. Every time items.member_id or

[GENERAL] Selecting from two unrelated tables

2006-09-20 Thread CSN
I have two tables: items: id, title, added, ... news: id, headline, datetime, ... I'd like to select the latest 25 combined records from both tables. Is there a way to do this using just select? Thanks, csn __ Do You Yahoo!? Tired of

Re: [GENERAL] postgresql rising

2006-09-20 Thread CSN
PostgreSQL doesn't have any booth babes? ;P csn > On 09/20/06 16:38, Philip Hallstrom wrote: > [snip] > > I think that description is false. At a certain point in the > > management hierarchy, the only way anyone has the ability to > > evaluate something is on t

[GENERAL] Dump all databases to corresponding files

2006-11-05 Thread CSN
ional things (if so, please describe how they'd also be dumped)? Thanks, csn Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates (http://voice.yahoo.com) --

[GENERAL] copy - fields enclosed by, ignore x lines

2004-10-25 Thread CSN
Any chance of changing \copy and COPY to allow specifying what the fields are enclosed by (such as quotes) and to ignore the first x number of lines? I have data like below and don't know of an easy way to finesse it for importing (a simple regexp would remove quotes, but I just got tripped up on c

Re: [GENERAL] copy - fields enclosed by, ignore x lines

2004-10-25 Thread CSN
Ah, looks like "enclosed by" will be in PG 8 :). Is "QUOTE [ AS ] 'quote'" for the "enclosed by" character? Ignore x lines would be nice, but not as big of a deal. http://developer.postgresql.org/docs/postgres/sql-copy.html --- CSN <[EMAIL PROTECT

[GENERAL] Derived tables?

2004-10-28 Thread CSN
Just wondering - does PG support derived tables? I'm not really sure what the difference is between them and subqueries. http://www.mysql.com/news-and-events/press-release/release_2004_32.html http://www.sqlservercentral.com/columnists/rmarda/derivedtablebasics_printversion.asp

  1   2   >