Re: [GENERAL] Unexplained case insensitive results

2007-04-19 Thread Peter Eisentraut
Lloyd Mason wrote: > I have also tried the query using the same encoding with both the > 8.1.5 and 8.1.8 versions and the query is still coming back with > different results. He said locale, not encoding. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(e

Re: [GENERAL] cant get pg_dump/pg_restore to behave

2007-04-19 Thread Tom Lane
"Mike Frysinger" <[EMAIL PROTECTED]> writes: > $ pg_dump -F c -s -d database-server mydb > mydb.schema > $ psql -d mydb < mydb.schema > pg_dump -Fc does not produce a file that psql can read directly. Is the above really what you did? regards, tom lane --

[GENERAL] Technical Documentation and Community Login

2007-04-19 Thread Guy Rouillier
I was attempting to get info to answer a question on this mailing list. I found a document that sounded appropriate here: http://www.postgresql.org/docs/techdocs.71. Color me dumb, but I can't figure a way to download the document "Apache 2.0, Tomcat 5.5, WARs & PostgreSQL 8.1 JDBC DataSource

[GENERAL] cant get pg_dump/pg_restore to behave

2007-04-19 Thread Mike Frysinger
i'm trying to add the ability to dump our database as a backup in case things go wrong with the db server, and so i'm trying to test things now so that if/when things do go bad, i'm not scrambling then :) as a test, i'm just trying to dump a database's schema and restore that ... but it seems lik

Re: [GENERAL] selective export for subsequent import (COPY)

2007-04-19 Thread Brent Wood
chrisj wrote: Thanks Alan, This helped a lot, but ideally I want a tab field delimiter and -F '\t' does not seem to work, any ideas?? I noticed one other post on this same problem of the fieldsep '\t' not working but the only advise offered was to use \pset. Can \pset be used on the command lin

Re: [GENERAL] Is it possible to move a database to another tablespace?

2007-04-19 Thread Tom Lane
Francisco Reyes <[EMAIL PROTECTED]> writes: > I see tables and indexes can be moved to a different tablespace. > Is there any way to move an entire database to a different tablespace? No. Moving the system catalogs on-the-fly would be an interesting problem ("uh, where did you say pg_class was?

Re: [GENERAL] binding 64-bit integer

2007-04-19 Thread Tom Lane
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > I wanted to bind a 64-bit integer, but it failed: > "ERROR: incorrect binary data format in bind > parameter 1". It sorta looks like you are trying to send that value to a parameter that the server doesn't think is int8. r

Re: [GENERAL] selective export for subsequent import (COPY)

2007-04-19 Thread Tom Lane
chrisj <[EMAIL PROTECTED]> writes: > This helped a lot, but ideally I want a tab field delimiter and -F '\t' does > not seem to work, any ideas?? I don't think there's any provision for backslash-notation in that switch; you'd need to type an actual tab character there. Depending on what shell yo

Re: [GENERAL] selective export for subsequent import (COPY)

2007-04-19 Thread chrisj
Thanks Alan, This helped a lot, but ideally I want a tab field delimiter and -F '\t' does not seem to work, any ideas?? I noticed one other post on this same problem of the fieldsep '\t' not working but the only advise offered was to use \pset. Can \pset be used on the command line, I can only g

Re: [GENERAL] Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9

2007-04-19 Thread Tom Lane
Kevin Murphy <[EMAIL PROTECTED]> writes: > Has anybody tried making a 64-bit PostgreSQL on an Apple XServe w/ > Intel Woodcrest CPU's? My compile works, but the 'make check' fails > because of failure to allocate shared memory. There's plenty of SYSV > memory available. > creating template

Re: [GENERAL] dollar-quoting trouble

2007-04-19 Thread Klint Gore
On Thu, 19 Apr 2007 23:45:47 +0200, Karsten Hilbert <[EMAIL PROTECTED]> wrote: > I can't spot the trouble with this function definition: > > create function dem.trf_null_empty_title() > returns trigger > language plpgsql > as $null_empty_title$ > begin > if (NEW.title is nu

Re: [GENERAL] Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9

2007-04-19 Thread Kevin Murphy
A.M. wrote: On Apr 19, 2007, at 3:21 PM, Kevin Murphy wrote: Has anybody tried making a 64-bit PostgreSQL on an Apple XServe w/ Intel Woodcrest CPU's? My compile works, but the 'make check' fails because of failure to allocate shared memory. There's plenty of SYSV memory available. The con

Re: [GENERAL] dollar-quoting trouble

2007-04-19 Thread John DeSoi
Works for me on both 8.1 and 8.2. What client are you using? John On Apr 19, 2007, at 5:45 PM, Karsten Hilbert wrote: I can't spot the trouble with this function definition: John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL ---(end of broadcast)---

Re: [GENERAL] binding 64-bit integer

2007-04-19 Thread Martin Gainty
Flying- reading the source displays http://doxygen.postgresql.org/postgres_8c-source.html /* Trouble if it didn't eat the whole buffer */ if (!isNull && pbuf.cursor != pbuf.len) ereport(ERROR, (errcode(ERRCODE_INVALID_BINARY_RE

[GENERAL] binding 64-bit integer

2007-04-19 Thread [EMAIL PROTECTED]
Hi all, I'm using Solaris 10 with 64-bit libpq library. I wanted to bind a 64-bit integer, but it failed: "ERROR: incorrect binary data format in bind parameter 1". The code would succeed if the type of "val" is uint32_t. Doe anyone know how to fix this? Thanks a lot! ---

Re: [GENERAL] Postgres data/form entry tool

2007-04-19 Thread Brent Wood
Richard Huxton wrote: David Potts wrote: David Potts wrote: Any platform ! ie Web ,X, , L/Unix console, Mac or even Weandozz pgadmin, phppgadmin - although these are pitched more towards admin, they let you edit table data. PGAccess provides a spreadsheet like view of tables which users

Re: [GENERAL] selective export for subsequent import (COPY)

2007-04-19 Thread Brent Wood
chrisj wrote: I would like to do a selective export of a number of tables from a large database to import into a smaller (test) DB. I know about: psql dbname -tc "select * from tableX where whatever" > tableX.dat You might try psql dbname -Atc "select * from tableX where whatever" > tableX.

Re: [GENERAL] dollar-quoting trouble

2007-04-19 Thread Alvaro Herrera
Karsten Hilbert wrote: > Hi all, > > I can't spot the trouble with this function definition: > > create function dem.trf_null_empty_title() > returns trigger > language plpgsql > as $null_empty_title$ > begin > if (NEW.title is null) then > return NEW; >

Re: [GENERAL] Postgres data/form entry tool

2007-04-19 Thread Chris Browne
[EMAIL PROTECTED] (Kenneth Downs) writes: > If you want end-users to be doing the data entry, Andromeda may be > what you want. > > http://www.andromeda-project.org/ > > The project is aimed at more complicated cases and may carry too much > overhead for what you want, but perhaps not. Their choic

[GENERAL] Bug o not bug in subqueries

2007-04-19 Thread William Contreras
I have one table. create table u ( id integer, __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.espanol.yahoo.com/ ---(end of broadcast)--

[GENERAL] dollar-quoting trouble

2007-04-19 Thread Karsten Hilbert
Hi all, I can't spot the trouble with this function definition: create function dem.trf_null_empty_title() returns trigger language plpgsql as $null_empty_title$ begin if (NEW.title is null) then return NEW; end if; if trim(NEW.titl

Re: [GENERAL] Is it possible to move a database to another tablespace?

2007-04-19 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/19/07 14:51, Francisco Reyes wrote: > I see tables and indexes can be moved to a different tablespace. > Is there any way to move an entire database to a different tablespace? Move one table at a time? - -- Ron Johnson, Jr. Jefferson LA USA G

Re: [GENERAL] Can Postgresql be ported to a device with no OS and simple file I/O and memory management?

2007-04-19 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/19/07 15:11, Dave Page wrote: > Walter Vaughan wrote: >> Raymond Hurst wrote: >> >>> I have a requirement of incorporating a database in a hard disk drive. >> Well, back in the day there was a man called Dick Pick. The US Goverment >> had the sam

Re: [GENERAL] Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9

2007-04-19 Thread Alvaro Herrera
Kevin Murphy wrote: > On Apr 19, 2007, at 3:21 PM, Kevin Murphy wrote: > >Has anybody tried making a 64-bit PostgreSQL on an Apple XServe w/ > >Intel Woodcrest CPU's? My compile works, but the 'make check' > >fails because of failure to allocate shared memory. There's plenty > >of SYSV memo

Re: [GENERAL] Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9

2007-04-19 Thread Kevin Murphy
On Apr 19, 2007, at 3:21 PM, Kevin Murphy wrote: Has anybody tried making a 64-bit PostgreSQL on an Apple XServe w/ Intel Woodcrest CPU's? My compile works, but the 'make check' fails because of failure to allocate shared memory. There's plenty of SYSV memory available. The call to shmge

[GENERAL] Incrementally Updated Backups: Docs Clarification

2007-04-19 Thread Thomas F. O'Connell
I'm about to begin playing with incrementally updated backups for a warm standby scenario, but I need some help understanding this paragraph in postgres terms. From 23.4.5 in the 8.2.3 docs: "If we take a backup of the standby server's files while it is following logs shipped from the prima

Re: [GENERAL] recommendations for reducing mem usage on local dev machine

2007-04-19 Thread Anton Melser
On 19/04/07, Andrej Ricnik-Bay <[EMAIL PROTECTED]> wrote: On 4/15/07, Anton Melser <[EMAIL PROTECTED]> wrote: > it might even make more sense), and with KDE/Gnome these days, I don't > think there is much difference with XP... Of course you could use fluxbox, twm or something else less bloated .

Re: [GENERAL] Can Postgresql be ported to a device with no OS and simple file I/O and memory management?

2007-04-19 Thread Dave Page
Walter Vaughan wrote: > Raymond Hurst wrote: > >> I have a requirement of incorporating a database in a hard disk drive. > > Well, back in the day there was a man called Dick Pick. The US Goverment > had the same request. They wanted a database incorporated into a hard > disk drive, and that's wh

Re: [GENERAL] Download source

2007-04-19 Thread Alvaro Herrera
Andrew Toth wrote: > 2007. 04. 18, szerda keltezéssel 18.21-kor Alvaro Herrera ezt írta: > > > Andrew Toth wrote: > > > Dear List, > > > > > > I would like to download the version of source code containing > > > catversion.h with the line "#define CATALOG_VERSION_NO 200611051". This > > > is fir

[GENERAL] Is it possible to move a database to another tablespace?

2007-04-19 Thread Francisco Reyes
I see tables and indexes can be moved to a different tablespace. Is there any way to move an entire database to a different tablespace? ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an

Re: [GENERAL] Can Postgresql be ported to a device with no OS and simple file I/O and memory management?

2007-04-19 Thread Walter Vaughan
Raymond Hurst wrote: I have a requirement of incorporating a database in a hard disk drive. Well, back in the day there was a man called Dick Pick. The US Goverment had the same request. They wanted a database incorporated into a hard disk drive, and that's what they got. An operating system

Re: [GENERAL] Download source

2007-04-19 Thread Andrew Toth
2007. 04. 18, szerda keltezéssel 18.21-kor Alvaro Herrera ezt írta: > Andrew Toth wrote: > > Dear List, > > > > I would like to download the version of source code containing > > catversion.h with the line "#define CATALOG_VERSION_NO 200611051". This > > is first met in Changeset 26624 > > (http

[GENERAL] Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9

2007-04-19 Thread Kevin Murphy
Has anybody tried making a 64-bit PostgreSQL on an Apple XServe w/ Intel Woodcrest CPU's? My compile works, but the 'make check' fails because of failure to allocate shared memory. There's plenty of SYSV memory available. I compiled using: ./configure --without-readline --prefix=/usr/loc

Re: [GENERAL] tsearch2 benchmarks, Oleg gets prize

2007-04-19 Thread Oleg Bartunov
This is very interesting and I'm interested if you write a paper, so we could reference on. Two days ago I gave a talk on Russian Internet Technologies conference about new FTS we developed for 8.3 version and there was real interest. btw, there are several performance optimization tips for ts

[GENERAL] tsearch2 benchmarks, Oleg gets prize

2007-04-19 Thread Listmail
tsearch2 versus mysql FULLTEXT in the context of a large forum. I guess you know the answer already, but it never hurts to have nice graphics to show your boss. http://peufeu.free.fr/ftsbench/ I will upload new versions with more results, and maybe other engines, as I ca

Re: [GENERAL] Can Postgresql be ported to a device with no OS and simple file I/O and memory management?

2007-04-19 Thread Listmail
If you want embedded SQL, you'll probably have only 1 user at a time so sqlite is a better choice. But do you want embedded SQL ? On Wed, 18 Apr 2007 22:48:52 +0200, Raymond Hurst <[EMAIL PROTECTED]> wrote: I have a requirement of incorporating a database in a hard disk drive.

Re: [GENERAL] Postgres data/form entry tool

2007-04-19 Thread Alvaro Herrera
Reid Thompson wrote: > On Thu, 2007-04-19 at 10:05 -0500, Tony Caduto wrote: > http://www.gnome-db.org/ Glom (www.glom.org) would seem to fit the bill. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -

Re: [GENERAL] Can Postgresql be ported to a device with no OS and simple file I/O and memory management?

2007-04-19 Thread Frederick Ross
In a hard disk drive? My god, why? If you're doing embedded programming, don't carry over applications that were never intended for it. Go port eForth or Pygmy Forth to your hard drive, or at least set up a C cross compiler, and write whatever hash tables you need. If you're trying to make a de

Re: [GENERAL] Postgres data/form entry tool

2007-04-19 Thread Reid Thompson
On Thu, 2007-04-19 at 10:05 -0500, Tony Caduto wrote: > David Potts wrote: > > Can any body recommend a generic opensource data entry tool that can be > > used to make some simple forms for entering data in to postgres? > > > > > > ---(end of broadcast)-

Re: [GENERAL] Incremental backups

2007-04-19 Thread Kev
On Apr 19, 9:41 am, Kev <[EMAIL PROTECTED]> wrote: > On Apr 17, 10:27 am, [EMAIL PROTECTED] (Mageshwaran) wrote: > > > hi everyone, > > > please any one give any methods to do incremental backups. it is urgent > > .. help me > > > Regards > > J Mageshwaran > > Sorry, I don't have anything implement

[GENERAL] Can Postgresql be ported to a device with no OS and simple file I/O and memory management?

2007-04-19 Thread Raymond Hurst
I have a requirement of incorporating a database in a hard disk drive. Can postgresql do the job? Any consultants out here that have done this? If not, any suggestions? Ray Hurst Western Digital 20511 Lake Forest Drive Lake Forest, CA 92630 949-672-9853

Re: [GENERAL] Incremental backups

2007-04-19 Thread Kev
On Apr 17, 10:27 am, [EMAIL PROTECTED] (Mageshwaran) wrote: > hi everyone, > > please any one give any methods to do incremental backups. it is urgent > .. help me > > Regards > J Mageshwaran Sorry, I don't have anything implemented, but I've been wondering about this too. One way (not necessaril

[GENERAL] Auditing a database

2007-04-19 Thread Germán Hüttemann Arza
Hi, I am developing a web application for auditing tables from a postgresql database. My question is: when an update occurrs in the base table, should I insert in the auditing table the new record or the old one? I was first inserting the new one but a job partner, who are testing the applica

Re: [GENERAL] Postgres data/form entry tool

2007-04-19 Thread Tony Caduto
David Potts wrote: Can any body recommend a generic opensource data entry tool that can be used to make some simple forms for entering data in to postgres? ---(end of broadcast)--- TIP 6: explain analyze is your friend For Desktop applicatio

Re: [GENERAL] Need help with db script, and daily routines

2007-04-19 Thread Richard Huxton
Peter Neu wrote: Hello, I have 2 tables: In one I log the user name of a web site user like this: Name Access time "makost0001" " 2007-04-19 15:09:19" "makost0001" " 2007-04-19 15:09:19" In the other I have the user name his group and the expiry date of his account. Name

Re: [GENERAL] How often do I need to reindex tables?

2007-04-19 Thread Martin Gainty
Bill and Tom Best to find out what kind of index you want to create beforehand If your data is evenly distributed and exhibits High Cardinality (2 entries for A,B,C...Z) then I would recommend a BTREE Index If not (low cardinality scenarios such as gender) then create Bitmap Index I cant speak

Re: [GENERAL] How often do I need to reindex tables?

2007-04-19 Thread Bill Moran
In response to Tom Lane <[EMAIL PROTECTED]>: > Bill Moran <[EMAIL PROTECTED]> writes: > > Just an FYI ... I remembered what prompted the cron job. > > > We were seeing significant performance degradation. I never did actual > > measurements, but it was on the order of "Bill, why is restoring tak

[GENERAL] Need help with db script, and daily routines

2007-04-19 Thread Peter Neu
Hello, I have 2 tables: In one I log the user name of a web site user like this: Name Access time "makost0001" " 2007-04-19 15:09:19" "makost0001" " 2007-04-19 15:09:19" In the other I have the user name his group and the expiry date of his account. Name Group

Re: [GENERAL] Auditing a database

2007-04-19 Thread Dave Page
Germán Hüttemann Arza wrote: > Hi, > > I am developing a web application for auditing tables from a postgresql > database. > > My question is: when an update occurrs in the base table, should I insert in > the auditing table the new record or the old one? > > I was first inserting the new one

Re: [GENERAL] Auditing a database

2007-04-19 Thread Kenneth Downs
Ask the question: can I make sure I always have a complete trail? If you insert the old row, you will always have the old values and the table itself holds the new values. Germán Hüttemann Arza wrote: Hi, I am developing a web application for auditing tables from a postgresql database. My

Re: [GENERAL] Auditing a database

2007-04-19 Thread Richard Huxton
Germán Hüttemann Arza wrote: Hi, I am developing a web application for auditing tables from a postgresql database. My question is: when an update occurrs in the base table, should I insert in the auditing table the new record or the old one? Old - you already have the new version in the ma

[GENERAL] Auditing a database

2007-04-19 Thread Germán Hüttemann Arza
Hi, I am developing a web application for auditing tables from a postgresql database. My question is: when an update occurrs in the base table, should I insert in the auditing table the new record or the old one? I was first inserting the new one but a job partner, who are testing the applica

Re: [GENERAL] Postgres data/form entry tool

2007-04-19 Thread Kenneth Downs
If you want end-users to be doing the data entry, Andromeda may be what you want. http://www.andromeda-project.org/ The project is aimed at more complicated cases and may carry too much overhead for what you want, but perhaps not. David Potts wrote: Can any body recommend a generic opensou

Re: [GENERAL] Postgres data/form entry tool

2007-04-19 Thread Richard Huxton
David Potts wrote: David Potts wrote: Any platform ! ie Web ,X, , L/Unix console, Mac or even Weandozz pgadmin, phppgadmin - although these are pitched more towards admin, they let you edit table data. There are also lots of commercial admin/data tools that will work with PG - check the

Re: [GENERAL] Postgres data/form entry tool

2007-04-19 Thread David Potts
> David Potts wrote: Any platform ! ie Web ,X, , L/Unix console, Mac or even Weandozz >> >> Can any body recommend a generic opensource data entry tool that can be >> used to make some simple forms for entering data in to postgres? > > For the web? *nix console? GTK? Mac? > > -- >Richard Hux

Re: [GENERAL] Postgres data/form entry tool

2007-04-19 Thread Richard Huxton
David Potts wrote: Can any body recommend a generic opensource data entry tool that can be used to make some simple forms for entering data in to postgres? For the web? *nix console? GTK? Mac? -- Richard Huxton Archonet Ltd ---(end of broadcast)--

Re: [GENERAL] WAL

2007-04-19 Thread Richard Huxton
Ashish Karalkar wrote: Hello All, can anybody please tell me which file name should given in %f parameter of archive_command. As per documantation "When not using WAL archiving, the system normally creates just a few segment files and then "recycles" them by renaming no-longer-needed s

[GENERAL] Postgres data/form entry tool

2007-04-19 Thread David Potts
Can any body recommend a generic opensource data entry tool that can be used to make some simple forms for entering data in to postgres? ---(end of broadcast)--- TIP 6: explain analyze is your friend

[GENERAL] WAL

2007-04-19 Thread Ashish Karalkar
Hello All, can anybody please tell me which file name should given in %f parameter of archive_command. As per documantation "When not using WAL archiving, the system normally creates just a few segment files and then "recycles" them by renaming no-longer-needed segment files to higher s