Re: [GENERAL] Question about function body checking and 8.1

2005-03-22 Thread Peter Eisentraut
Tom Lane wrote: Peter Eisentraut [EMAIL PROTECTED] writes: Implementing this type of syntax checker isn't hard since the code is already there, but there might be a small, ugly problem. IIRC, the parser and/or semantic analyzer of PL/pgSQL relies on knowing whether the function is called

Re: [GENERAL] Installing PostgreSQL in Debian

2005-03-20 Thread Peter Eisentraut
Michael Ben-Nes wrote: I recomend you to compile PG from source so you can use the new 8.0.1 PostgreSQL 8.0.1 is available in the Debian experimental suite, package name postgresql-8.0. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast

Re: [GENERAL] General query optimization howto

2005-03-13 Thread Peter Eisentraut
in the PostgreSQL documentation. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister YourEmailAddressHere to [EMAIL PROTECTED])

Re: [GENERAL] pgpool

2005-03-02 Thread Peter Eisentraut
, say, Nagios. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister YourEmailAddressHere to [EMAIL PROTECTED])

Re: [GENERAL] row numbering

2005-02-28 Thread Peter Eisentraut
NTPT wrote: Having some sort of line numbering in result query would be nice... The query result has line numbering. How else are you accessing the individual rows? Is the issue really that you want psql to number the lines on display? That could be implemented. -- Peter Eisentraut http

Re: [GENERAL] row numbering

2005-02-28 Thread Peter Eisentraut
order to tables or views or actually had some kind of automatic row number available, that would still make the semantics of your data dependent of the particularities of the queries that you use to access it, which doesn't sound like a good idea to me. -- Peter Eisentraut http

Re: [GENERAL] Possible to run the server with ANSI/ISO string escapeing

2005-02-28 Thread Peter Eisentraut
is not an issue. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] LIke and Indicies

2005-02-25 Thread Peter Eisentraut
)::text ~~ 'J%'::text) What part of Index Scan are you misunderstanding? -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] LIke and Indicies

2005-02-25 Thread Peter Eisentraut
Condition. Well, the truth is that it has *the option* to use the index, but it doesn't have to. This really mostly independent of the LIKE index issue. If you think that the plan choice is not optimal, try EXPLAIN ANALYZE and post the results if you need help interpreting them. -- Peter

Re: [GENERAL] Install scripts?

2005-02-25 Thread Peter Eisentraut
Charl Gerber wrote: DROP DATABASE db_name IF EXISTS (--- is there something similar in Postgre? Like the CREATE OR REPLACE FUNCTION) No, you just go ahead and ignore the error. CREATE DATABASE db_name; USE db_name; \connect db_name SOURCE users.sql; \i users.sql -- Peter Eisentraut

Re: [GENERAL] row numbering

2005-02-25 Thread Peter Eisentraut
josue wrote: is there a way return a column with the row number automatically generated according the way the rows were processed by the query. No, but you can easily keep a counter in the client. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end

Re: [GENERAL] database encoding WIN -- Western or Cyrillic?

2005-02-15 Thread Peter Eisentraut
bothered to implement it until now). I remain mystified why the WIN encoding would default to a fairly obscure Cyrillic encoding considering most Russian users that I know are using either KOI8 or Unicode. Legacy. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] PostgreSQL vs. MySQL vs. Oracle, 2005 report card

2005-02-14 Thread Peter Eisentraut
with PostgreSQL 6.3 at best, so I'd disregard this report. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] database encoding WIN -- Western or Cyrillic?

2005-02-14 Thread Peter Eisentraut
Am Samstag, 12. Februar 2005 23:32 schrieb Preston Landers: If the postgresql encoding WIN is intended to be Cyrillic 1251, then it should be labeled as such in the docs to avoid confusion. Well, isn't it? You pointed to the place in the documentation yourself. -- Peter Eisentraut http

Re: [GENERAL] PostgreSQL Security Release

2005-02-01 Thread Peter Eisentraut
mirror then. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [GENERAL] [pgsql-advocacy] MySQL worm attacks Windows servers

2005-01-30 Thread Peter Eisentraut
. And of course, to report a bug/vulnerability/etc you would write to pgsql-bugs, not core. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] EMBEDDED PostgreSQL

2005-01-25 Thread Peter Eisentraut
Tope Akinniyi wrote: If I may ask, is there any plan for embedded PostgreSQL database No. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan

Re: [GENERAL] custom integrity check

2005-01-21 Thread Peter Eisentraut
exactly one 'master' cat. It seems to me that you should merge this table into the cats table. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 6: Have you searched our list archives? http

Re: [GENERAL] postgresql 8.0.0 make check fails

2005-01-21 Thread Peter Eisentraut
and get a backtrace. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister YourEmailAddressHere to [EMAIL PROTECTED])

Re: [GENERAL] Debian Sarge, Postgres 7.4.6 + PAM

2005-01-19 Thread Peter Eisentraut
Bruno Lavoie wrote: is there a way to easily configure postgresql to auth with pam on debian? Yes, the same way as on any other platform. What particular problem are you having? -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast

Re: [GENERAL] list databases with SQL command

2005-01-18 Thread Peter Eisentraut
Am Dienstag, 18. Januar 2005 11:32 schrieb David Teran: maybe its a silly question, but is there a way to list all databases with an SQL command? I know about the \l command from psql, but i wonder if such things are possible with SQL. SELECT * FROM pg_database; -- Peter Eisentraut http

Re: [GENERAL] Optimistic concurrency control

2005-01-13 Thread Peter Eisentraut
, the pessimistic alternative is using the transaction isolation level Read Committed and explicitly locking all rows you want to alter using SELECT FOR UPDATE. Again, read the documentation for details. In any case, explicitly reading xmin and friends is not necessary. -- Peter Eisentraut http

Re: [GENERAL] allowing connections from additional hosts without a restart?

2005-01-13 Thread Peter Eisentraut
Lonni J Friedman wrote: Now i need to add an additional DB for a different server, but I can't afford any down time to restart postgresql for the changes in pg_hba.conf to take effect. pg_ctl reload or (equivalently) kill -HUP -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] pgpool

2005-01-13 Thread Peter Eisentraut
you should have at least 300 * several PostgreSQL connection slots, which is probably more than the 1000 or so that is the default. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 4: Don't 'kill -9

Re: [GENERAL] views in 8.0

2005-01-11 Thread Peter Eisentraut
Am Dienstag, 11. Januar 2005 13:43 schrieb Jason Tesser: Can you insert and update data in views in 8.0 I know you cannot in 7.4. Views not updatable in 7.4 or in 8.0. You need to write your own update rules. Nothing has changed in that regard. -- Peter Eisentraut http

Re: [GENERAL] Debian Packages for Postgresql 8.0.0 RC1

2004-12-17 Thread Peter Eisentraut
see something usable. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html

Re: [GENERAL] sorting problem

2004-12-17 Thread Peter Eisentraut
in this particular case. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] unix_socket_directory

2004-12-17 Thread Peter Eisentraut
Scott Marlowe wrote: unix_socket_directory = /home/pgmaster/tmp The directory I'm trying to use is world writable. Am I missing something simple here? Yes, single quotes around the parameter value. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] sorting problem

2004-12-16 Thread Peter Eisentraut
Jamie Deppeler wrote: Problem i am having at the moment i cant get a true alpha sort to work as Order By is sorting A..Z then a..z where i need aA..zZ sort independant of case. Initialize the database cluster with a locale setting other than C. -- Peter Eisentraut http

Re: [GENERAL] is there a repair utility for postgresql?

2004-12-15 Thread Peter Eisentraut
Dave Brazzeal wrote: I'm running postgreSQL on SLES 8 No, there isn't. If we were able to write a repair utility, we might as well fix the code to prevent the damage in the first place. If you have a problem that you need to repair, please provide specifics. -- Peter Eisentraut http

Re: [GENERAL] Older Windows versions

2004-12-03 Thread Peter Eisentraut
. Is there any wway to get the older versions for Window$? No. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister

[GENERAL] Calling for translation finalization

2004-12-03 Thread Peter Eisentraut
contribution. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message

Re: [GENERAL] Creating index on a view?

2004-11-24 Thread Peter Eisentraut
will have to implement that manually in PostgreSQL, with triggers and a bunch of code. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] Copying into Unicode - Correcting Errors

2004-11-24 Thread Peter Eisentraut
Unicode characters greater than or equal to 0x1, then I don't have a good answer. But more often, this error means that your file is not in Unicode in the first place. If so, set the client encoding to the real encoding of your file, e.g. export PGCLIENTENCODING=LATIN1 -- Peter Eisentraut http

Re: [GENERAL] Moving/Using Postgres Binaries on multiple machines

2004-11-24 Thread Peter Eisentraut
(LD_LIBRARY_PATH; PATH; PGLIB etc). Anyone come across that? Moving the installation to a different path is not supported for permanent use before 8.0. You better try to install in the same directory layout on all machines where you want to deploy. -- Peter Eisentraut http

Re: [GENERAL] problem in modifing column datatype of a table

2004-11-24 Thread Peter Eisentraut
-- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] PostGreSQL upgrade failed (Debian Packages), need advice...

2004-11-24 Thread Peter Eisentraut
be corrected in the future. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] PostGreSQL upgrade failed (Debian Packages), need advice...

2004-11-24 Thread Peter Eisentraut
Joshua D. Drake wrote: Well you can't just upgrade 7.2.1 to 7.4.6. You have to dump and restore. The Debian package does that automatically. On some days... -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast

Re: [GENERAL] Upcoming Changes to News Server ...

2004-11-23 Thread Peter Eisentraut
and be re-routed to pgsql.* instead ... on our server (and we encourage others to do the same), the comp.* groups will be aliased to the new pgsql.* hierarchy, so that posts to the old groups will still get through ... What exactly is this meant to achieve? -- Peter Eisentraut http

Re: [GENERAL] Help with syntax for timestamp addition

2004-11-22 Thread Peter Eisentraut
: SELECT number FROM procedures WHERE date + (numdays || ' days')::interval = CURRENT_TIMESTAMP; Just to add to the record, the mathematically sound way to write this query would be this: SELECT number FROM procedures WHERE date + numdays * interval '1 day' = current_timestamp; -- Peter

Re: [GENERAL] OID's

2004-11-16 Thread Peter Eisentraut
away. This is one reason. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [GENERAL] OID's

2004-11-16 Thread Peter Eisentraut
proposed getting rid of OIDs and presented a plan for fixing all the other holes that move would leave. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose

Re: [GENERAL] Transaction in different DB

2004-11-16 Thread Peter Eisentraut
?? No. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] PGCLIENTENCODING behavior of current CVS source

2004-11-16 Thread Peter Eisentraut
the news: Not only the server encoding and the server locale have to match. The same is true on the client side. In particular, in order to avoid errors from the PO files, your LC_CTYPE and your PGCLIENTENCODING need to be compatible. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] suggestion for psql

2004-11-15 Thread Peter Eisentraut
Holger Klawitter wrote: Shouldn't psql honour the current locale setting (LC_CTYPE) or/and have a command line option to set the encoding? The environment variable PGCLIENTENCODING serves this purpose. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] q with psql display paging dumps out of psql

2004-11-15 Thread Peter Eisentraut
Jim Seymour wrote: echo $? after it happens yields 141. There is no 141 in /usr/include/sys/errno.h. Exit code 141 means signal 141 - 128 = 13 = SIGPIPE. I haven't finished thinking what that means in this case, though ... -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] Schemas?

2004-11-15 Thread Peter Eisentraut
. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister YourEmailAddressHere to [EMAIL PROTECTED])

Re: [GENERAL] Rolling back an update

2004-11-10 Thread Peter Eisentraut
mike wrote: Is it possible to undo a transaction after it has completed (using 8 beta1) Using the new point-in-time recovery feature, but you need to set that up first. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast

Re: [GENERAL] Important Info on comp.databases.postgresql.general

2004-11-10 Thread Peter Eisentraut
forwarded to the Usenet. That might be interesting. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] the column in Update

2004-11-10 Thread Peter Eisentraut
? -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html

Re: [GENERAL] Functions in postgres

2004-11-09 Thread Peter Eisentraut
in C and compile it into a shared library. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] superuser equality

2004-11-06 Thread Peter Eisentraut
be even more than the dba user. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister YourEmailAddressHere to [EMAIL PROTECTED])

Re: [GENERAL] Mass Import/Generate PKs

2004-11-06 Thread Peter Eisentraut
a primary key column later. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [GENERAL] restoring pgdump file file from 7.2 branch to 7.4

2004-11-05 Thread Peter Eisentraut
matter? I'm using the pltcl.so from my older 7.2 branch. That doesn't work. You need to use the one that was compiled for the server that you are using. You may need to adjust the path in the dump file. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] Postgres Versions / Releases

2004-11-02 Thread Peter Eisentraut
Am Dienstag, 2. November 2004 09:09 schrieb Alex P: Will there be a release 7.4.7 in the future? Possibly. When can the production release of 8 be expected? When it's ready. Probably this year. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end

Re: [GENERAL] Sorting, when values are equal....

2004-10-25 Thread Peter Eisentraut
to ensure that a second sort (such as the oid?) is used? Yes. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] Another list for windows port...

2004-10-19 Thread Peter Eisentraut
Am Dienstag, 19. Oktober 2004 02:31 schrieb Robby Russell: Isn't the purpose to promote PostgreSQL? not *nix-only flavors? It could be argued that the purpose is to get one's job done. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast

Re: [GENERAL] update sequence conversion script

2004-10-11 Thread Peter Eisentraut
Terry Lee Tucker wrote: When one moves from version 7.x to 8.x, will my old pgplsql functions continue to work with the single quotes Of course. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you

Re: [GENERAL] when to use NULL and when to NOT NULL DEFAULT ''

2004-10-08 Thread Peter Eisentraut
the second. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can

Re: [GENERAL] when to use NULL and when to NOT NULL DEFAULT ''

2004-10-08 Thread Peter Eisentraut
appears to have recommended at some point. My suggestion was to use null values. Of course, if you don't want null values, you declare your column accordingly. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast

Re: [GENERAL] text + text

2004-10-08 Thread Peter Eisentraut
except for bloat? It's not like SQL is utterly compatible with any programming language; users will still have to learn all the operators anyway. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 9

Re: [GENERAL] Comparing a varchar of length 32

2004-09-23 Thread Peter Eisentraut
of = works for varchar keys with length 32 as well. Please post the actual table definitions, the actual data, the actual command you are running, and the actual results you are getting. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast

Re: [GENERAL] psql + autocommit

2004-09-17 Thread Peter Eisentraut
Lars Haugseth wrote: Version 8.0.0beta2 supports a global configuration file. It's should be located in '~postgres/etc/pgsql'. That would be pretty useless, since normal users often don't have read access to another user's home directory. -- Peter Eisentraut http://developer.postgresql.org

Re: [GENERAL] Is it possible to get the 7.4.1 static docs in HTML form anymore?

2004-09-17 Thread Peter Eisentraut
Hadley Willan wrote: Reason being I'd like to install them locally on my laptop so that when I'm lap topping it, I still have docs without the need for an Internet connection. The documentation is always included in the release tarball. -- Peter Eisentraut http://developer.postgresql.org

Re: [GENERAL] psql + autocommit

2004-09-17 Thread Peter Eisentraut
John Sidney-Woollett wrote: Why not create this file during the make install, and explicitly set the current/standard default options (for psql) in the $PREFIX/share/psqlrc file? Because it would take up space, computing power, and attention without achieving anything. -- Peter Eisentraut

Re: [GENERAL] Import an Excel table to a Postgresql one

2004-09-17 Thread Peter Eisentraut
Daniele Beauquier wrote: How to import an Excel table into a Postgresql table in a simple way? Export into a text file and import using COPY. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you can

Re: [GENERAL] psql + autocommit

2004-09-15 Thread Peter Eisentraut
John Sidney-Woollett wrote: With the advent of postgres v8, would it be possible to change the default behaviour of psql from AUTOCOMMIT=ON to AUTOCOMMIT=OFF ? Absolutely not. This will break every psql use in existence. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] OS X Mac pgAdmin equivalent?

2004-09-15 Thread Peter Eisentraut
Vic Cekvenich wrote: What can I run on OS X as a pgAdmin equivalment (other than the Java solutions)? phpPgAdmin might be worth a try. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you can get off

Re: [GENERAL] psql + autocommit

2004-09-15 Thread Peter Eisentraut
. The problem is that people will use the new psql expecting it to behave like the old one. This isn't a small secondary change; it fundamentally changes the interaction with the program. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast

Re: [GENERAL] psql + autocommit

2004-09-15 Thread Peter Eisentraut
AUTOCOMMIT in your psql configuration file. We don't put feature-altering switches in the build process if we can help it. Since most people use prebuilt binaries, such a switch would be mostly useless at best. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] division by zero issue

2004-09-15 Thread Peter Eisentraut
Greg Donald wrote: I get the error: aggregates not allowed in WHERE clause Try HAVING then. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http

Re: [GENERAL] PG case sensitivity

2004-09-14 Thread Peter Eisentraut
DatabaseMetaData.storesUpperCaseIdentifiers(). -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [GENERAL] national settings

2004-09-11 Thread Peter Eisentraut
ppp wrote: initdb -E ISO-8859-2 --locale=pl -D ppp then pg_ctl -D ppp start and i get: FATAL: invalid value for option 'LC_MESSAGES': 'pl' Maybe your system only understands locale names of the form pl_PL. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] vacuum full for all databases

2004-09-02 Thread Peter Eisentraut
from one database session. But you could use dblink from contrib to overcome this restriction. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate

Re: [GENERAL] UTF-8 and LIKE vs =

2004-08-24 Thread Peter Eisentraut
. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] Is this legal SQL? Is it a good practice?

2004-08-24 Thread Peter Eisentraut
command is ok but the second one fails? All the commands are run in one transaction, so if one fails, the whole sequence is rolled back. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 7: don't forget

Re: [GENERAL] 8.0 release schedule?

2004-08-20 Thread Peter Eisentraut
that over the past 4 release cycles, beta phases have lasted 3.5 months on average, with little deviation. Based on that, I would not expect a final release before the middle of November. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end

Re: [GENERAL] Pass parameters to SQL script

2004-08-19 Thread Peter Eisentraut
TABLE :myValue hardcoded ... If myValue is double quoted, then the values will automatically be concatenated by the backend parser, but for strange (SQL-standard) reasons you need a line break in between. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] Thousands of parallel connections

2004-08-16 Thread Peter Eisentraut
Am Montag, 16. August 2004 16:20 schrieb Csaba Nagy: Peter is definitely not a newby on this list, so i'm sure he already thought about some kind of pooling if applicable... but then I'm dead-curious what kind of application could possibly rule out connection pooling even if it means so many

Re: [GENERAL] psql: immediately exit after an error?

2004-08-11 Thread Peter Eisentraut
details. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] Replication options?

2004-08-11 Thread Peter Eisentraut
machines with a shared storage (talk to your hardware vendor) or a replicating file system (like DRBD) and make the two machines monitor each other so that only one machine has the database mounted at any time. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] PostgreSQL 8.0 Feature List?

2004-08-10 Thread Peter Eisentraut
Am Dienstag, 10. August 2004 10:05 schrieb [EMAIL PROTECTED]: Will PostgreSQL 8.0 include replication server (not contrib/*) and nested transactions support? No and yes. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast

[GENERAL] Using connection after fork

2004-08-10 Thread Peter Eisentraut
I'm looking at a database-using program (PostgreSQL/libpq and MySQL) which does the following: A daemon process opens a database connection, forks children on request, and those children access the database using that inherited connection. After one request, the child dies. It seems to me

Re: [GENERAL] PostgreSQL 8.0 Feature List?

2004-08-10 Thread Peter Eisentraut
release, but not in the release notes. Also, what is the etymology of the term Slony? Russian: slon = elephant slony = elephants -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 5: Have you checked our

Re: [GENERAL] BIGINT indexes still with problems

2004-08-10 Thread Peter Eisentraut
and the cost calculation yields that it would be more efficient to not use the index. If you disagree, please show the timings generated by EXPLAIN ANALYZE. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 6

Re: [GENERAL] Fwd: [NOVICE] contrib/xml make error on Mac OS X 10.3.4

2004-08-01 Thread Peter Eisentraut
Joel Rodrigues wrote: The files do exist, for example: /usr/include/libxml2/libxml/xpath.h Try make all CPPFLAGS=-I/usr/include/libxml2 -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 9: the planner

Re: [GENERAL] PostgreSQL, GnuCash

2004-08-01 Thread Peter Eisentraut
database for that kind of job? None. :-) -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister YourEmailAddressHere to [EMAIL

Re: [GENERAL] locale-specific sort algorithms undocumented?

2004-07-26 Thread Peter Eisentraut
such as the Unicode Collation Algorithm. The latter in fact allows what many people appear to be looking for: a variable weighting option that allows you to promote punctuation characters to the first pass. But I don't think any operating system implements that, yet. -- Peter Eisentraut http

Re: [GENERAL] Sql injection attacks

2004-07-25 Thread Peter Eisentraut
is to execute it as a stored procedure. That won't necessarily help you on PostgreSQL, because in stored procedures you can paste together queries from user-provided strings. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast

Re: [GENERAL] installation: cc and gcc how to?

2004-07-17 Thread Peter Eisentraut
Nilabhra Banerjee wrote: Thanks a lot.. This much is enough for meIf I get some time afterwards I go thru it again But I am still curious to know about the CFlags variable..what are the other values it can take. Depends on your system. Try man cc. -- Peter Eisentraut http

Re: [GENERAL] moving an installation

2004-07-16 Thread Peter Eisentraut
will have problems. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [GENERAL] moving an installation

2004-07-15 Thread Peter Eisentraut
. There are a lot more paths compiled in than just the rpath. If you want to change the installation paths, you need to rebuild from scratch. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)--- TIP 2: you can get

Re: [GENERAL] Help needed on time data types

2004-07-12 Thread Peter Eisentraut
mike wrote: All the date-time types seem to only be for specific time dates and not for a running total. You probably want the interval type. ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send

Re: [GENERAL] make install (in contrib) and PGDATA

2004-07-12 Thread Peter Eisentraut
. These installation instructions are completely bogus. The new text that I just committed reads: The user running make install may need root access; depending on how you configured the PostgreSQL installation paths. -- Peter Eisentraut http://developer.postgresql.org/~petere

Re: [GENERAL] Training and certification

2004-07-09 Thread Peter Eisentraut
Am Freitag, 9. Juli 2004 08:30 schrieb Bret Busby: Thus, recognised, international, industry certification of open source application systems development, either involving PostgreSQL as a database backend by itself, or, involving PostgreSQL as a factor could be useful, apart from having the

Re: [GENERAL] username length character limits?

2004-07-03 Thread Peter Eisentraut
Dennis Gearon wrote: another name that does not work is 'H1q2W3e4R5_web_user'. Sounds like a quoting problem. In the meantime, read this: http://www.fr.postgresql.org/docs/7.4/static/bug-reporting.html It seems to not like many alternations between numbers and letters. Dennis Gearon

Re: [GENERAL] per-session (or persistent) table (and column) aliases

2004-07-02 Thread Peter Eisentraut
David Garamond wrote: CREATE TABLE somereallylongname1 (...); CREATE TABLEALIAS name1 somereallylongname1; SELECT * FROM name1 ...; Is there such a thing? A view does exactly what you need. ---(end of broadcast)--- TIP 9: the planner

Re: [GENERAL] Help please - completely baffled by quoting

2004-06-20 Thread Peter Eisentraut
Tim Robinson wrote: select * from temp where a like 'a\\\'%' this should return all strings starting with a\' but it returns nothing!!! \ is also the quoting character of LIKE, in addition to being a quoting character on the string literal level. If you want all strings starting with

Re: [GENERAL] Information Schema - Can the views be applied to older versions of PostgreSQL

2004-06-11 Thread Peter Eisentraut
[EMAIL PROTECTED] wrote: Can I take the INFORMATION SCHEMA views from 7.4 and install them in older versions of PostgreSQL, if so, how far back can they work? No. For your purposes, you maybe be able to backport them and distribute the altered versions with your product. For some cases this

Re: [GENERAL] About table schema

2004-05-26 Thread Peter Eisentraut
Wei Shi wrote: Hi, does anyone know how to get the schema information of a table. More specifically, I would like to know 1. which field(s) are primary keys? 2. the data type of each field of a table? 3. If a field is a foreign key, what field/table it is referring to. Use the information

<    1   2   3   4   5   6   7   8   9   10   >