Re: [HACKERS] bug in on_error_rollback !?

2006-10-27 Thread Bernd Helmle
--On Freitag, Oktober 27, 2006 11:00:07 +0530 Gurjeet Singh [EMAIL PROTECTED] wrote: I was thinking of recommending this to someone, but wanted to try it on my own first; good thing that I did. I think it is broken as of now. I assume that the error thrown for 'select 1', inside a

Re: [HACKERS] Deadlock with pg_dump?

2006-10-27 Thread Albe Laurenz
[ Memo to hackers: why is it that log_min_error_statement = error isn't the default? ] To avoid spamming the logs with every failed SQL statement? Yours, Laurenz Albe ---(end of broadcast)--- TIP 4: Have you searched our list archives?

Re: [HACKERS] bug in on_error_rollback !?

2006-10-27 Thread Gurjeet Singh
Thanks ...but case-sensitivity (even without quotes or d-quotes) is the last thing I'd expect in a SQL compliant software. This was highly unexpected. May I dare to raise a bug to eliminate case-sensitivity in psql variables? Will I get support from the community? Regards,-- [EMAIL

Re: [HACKERS] Deadlock with pg_dump?

2006-10-27 Thread Csaba Nagy
On Fri, 2006-10-27 at 09:23, Albe Laurenz wrote: [ Memo to hackers: why is it that log_min_error_statement = error isn't the default? ] To avoid spamming the logs with every failed SQL statement? And it would be hurting applications where query failure is taken as a valid path (as

Re: [HACKERS] bug in on_error_rollback !?

2006-10-27 Thread Andrew Dunstan
Gurjeet Singh wrote: Thanks ... but case-sensitivity (even without quotes or d-quotes) is the last thing I'd expect in a SQL compliant software. This was highly unexpected. May I dare to raise a bug to eliminate case-sensitivity in psql variables? Will I get support from the community?

Re: [HACKERS] New CRC algorithm: Slicing by 8

2006-10-27 Thread Zeugswetter Andreas ADI SD
In the WAL we just need to be able to detect torn pages and stop reading WAL at that point. That's easier and doesn't really need a CRC. We could just adopt the Sybase strategy of storing a unique id number every 512 bytes throughout the WAL page. If those numbers don't match then we

Re: [HACKERS] Deadlock with pg_dump?

2006-10-27 Thread Andrew Dunstan
Csaba Nagy wrote: On Fri, 2006-10-27 at 09:23, Albe Laurenz wrote: [ Memo to hackers: why is it that log_min_error_statement = error isn't the default? ] To avoid spamming the logs with every failed SQL statement? And it would be hurting applications where query failure is taken as a

[HACKERS] printing the query plan?

2006-10-27 Thread dakotali kasap
Hi,I want to print the query-plan that will be used before the execution of the query. Therefore put this line at the beginning of the ExecutorStart() function located in execMain.c :print_plan(queryDesc-plantree,queryDesc-parsetree);However, it did not work. What I want to ask is:1. Does

Re: [HACKERS] New CRC algorithm: Slicing by 8

2006-10-27 Thread Simon Riggs
On Fri, 2006-10-27 at 10:54 +0200, Zeugswetter Andreas ADI SD wrote: In the WAL we just need to be able to detect torn pages and stop reading WAL at that point. That's easier and doesn't really need a CRC. We could just adopt the Sybase strategy of storing a unique id number every 512

Re: [HACKERS] printing the query plan?

2006-10-27 Thread Martijn van Oosterhout
On Fri, Oct 27, 2006 at 01:58:21AM -0700, dakotali kasap wrote: Hi, I want to print the query-plan that will be used before the execution of the query. Therefore put this line at the beginning of the ExecutorStart() function located in execMain.c :

Re: [HACKERS] New CRC algorithm: Slicing by 8

2006-10-27 Thread Martijn van Oosterhout
On Fri, Oct 27, 2006 at 10:11:08AM +0100, Simon Riggs wrote: Putting xl_prev to the end helps only for direct IO WAL sync methods, else we would need it on every page. [There is already an XLogRecPtr on each 8k page.] Given that hardware sector size is still 512 bytes, should there be a

Re: [HACKERS] New CRC algorithm: Slicing by 8

2006-10-27 Thread Zeugswetter Andreas ADI SD
Putting xl_prev to the end helps only for direct IO WAL sync methods, else we would need it on every page. [There is already an XLogRecPtr on each 8k page.] Given that hardware sector size is still 512 bytes, should there be a way of detecting a missing 512 byte block in the

Re: [HACKERS] bug in on_error_rollback !?

2006-10-27 Thread Gurjeet Singh
I understand that psql commands are not SQL, but since psql is used to interact with SQL database, then the assumption of case-insensitivity in psql also comes naturally to the user.\ds and \dS are commands (first token on the line) so it is acceptable that they be case-sensitive. But a command's

Re: [HACKERS] printing the query plan?

2006-10-27 Thread dakotali kasap
Hi, I want to print the query-plan that will be used before the execution of the query. Therefore put this line at the beginning of the ExecutorStart() function located in execMain.c : print_plan(queryDesc-plantree,queryDesc-parsetree); print_plan writes to stdout, did you check where that is

Re: [HACKERS] printing the query plan?

2006-10-27 Thread Gurjeet Singh
Try your logfile... the one specified by the '-l' option while starting the server.On 10/27/06, dakotali kasap [EMAIL PROTECTED] wrote: But how can I find where stout is redirected to? Baran -- [EMAIL PROTECTED][EMAIL PROTECTED] gmail | hotmail | yahoo }.com

[HACKERS] 8.1-407 JDBC driver issues

2006-10-27 Thread lasitha weerasinghe
Hi, I'm using postgresql 8.1-407 jdbc driver with postgresql 7.4.13 database and it seems like there is an issue when the driver is used in jdbc transactions. I'm using this version of the jdbc driver, cause I haven't came across any fixes for the 8.1.4 security issuse for the 7.4.13

Re: [HACKERS] 8.1-407 JDBC driver issues

2006-10-27 Thread Dave Cramer
This belongs on the jdbc driver list On 27-Oct-06, at 6:29 AM, lasitha weerasinghe wrote: Hi, I'm using postgresql 8.1-407 jdbc driver with postgresql 7.4.13 database and it seems like there is an issue when the driver is used in jdbc transactions. I'm using this version of the jdbc

Re: [HACKERS] bug in on_error_rollback !?

2006-10-27 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is documented clearly on the psql man page, so it is simply not a bug, and changing this would probably break lots of legacy scripts. In a general sense, perhaps, but in this *particular* case, I don't see what harm allowing \set

Re: [HACKERS] Deadlock with pg_dump?

2006-10-27 Thread Tom Lane
Albe Laurenz [EMAIL PROTECTED] writes: [ Memo to hackers: why is it that log_min_error_statement = error isn't the default? ] To avoid spamming the logs with every failed SQL statement? Certainly there are people who will turn it off, but that's why it's configurable. I've had to answer how

Re: [HACKERS] [PATCHES] GUC description cleanup

2006-10-27 Thread Peter Eisentraut
Am Donnerstag, 26. Oktober 2006 19:47 schrieb Neil Conway: Note that this patch breaks the translations of these strings, so I haven't applied it yet. Should I apply it now, or wait for 8.3 to branch? I appreciate this effort, but I think it's better to hold the patch. -- Peter Eisentraut

Re: [HACKERS] Is python 2.5 supported?

2006-10-27 Thread Peter Eisentraut
Am Dienstag, 17. Oktober 2006 11:59 schrieb Hannu Krosing: Several of the failures appear to be a simple change in error reporting; I haven't investigated why import_succeed() failed. Should python 2.5 work with plpython? This is about pl_python ? Forwarding to Sven to investigate Any

Re: [HACKERS] Traveling for two weeks

2006-10-27 Thread Bruce Momjian
bruce wrote: FYI, I am leaving Friday for a two-week trip for EnterpriseDB. I am going to Tokyo, Islamabad (Pakistan), and Pune (India). I return on Friday, November 10. I will have Internet connectivity, but of course I will not be online as frequently as usual. My plans have changed and

Re: [HACKERS] [PATCHES] GUC description cleanup

2006-10-27 Thread Neil Conway
On Fri, 2006-10-27 at 15:59 +0200, Peter Eisentraut wrote: I appreciate this effort, but I think it's better to hold the patch. Sure, I'll wait for 8.3 to branch. -Neil ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please

Re: [HACKERS] bug in on_error_rollback !?

2006-10-27 Thread Neil Conway
On Fri, 2006-10-27 at 03:50 -0500, Andrew Dunstan wrote: psql variables and commands are not SQL, and are case sensitive. For example, \ds and \dS are not at all the same. This is documented clearly on the psql man page, so it is simply not a bug It may be documented, but \set still has a

Re: [HACKERS] [PATCHES] WAL logging freezing

2006-10-27 Thread Heikki Linnakangas
Tom Lane wrote: Heikki Linnakangas [EMAIL PROTECTED] writes: I would've liked to give freezing a new opcode, but we've ran out of them (see htup.h). Hardly ... we have plenty of unused rmgr id's still. Good point. The real issue that still has to be resolved is the interaction of all

Re: [HACKERS] [PATCHES] WAL logging freezing

2006-10-27 Thread Tom Lane
Heikki Linnakangas [EMAIL PROTECTED] writes: Tom Lane wrote: I think it's premature to start writing patches until we've decided how this really needs to work. Not logging hint-bit updates seems safe to me. As long as we have the clog, the hint-bit is just a hint. The problem with freezing

Re: [HACKERS] bug in on_error_rollback !?

2006-10-27 Thread Peter Eisentraut
Gurjeet Singh wrote: \ds and \dS are commands (first token on the line) so it is acceptable that they be case-sensitive. But a command's parameters/arguments should not be case sensitive, unless quoted. This distinction has not basis in SQL syntax. If it is documented that psql commands are

[HACKERS] qsort-pg_qsort in 8.2

2006-10-27 Thread Jan Wieck
since rev. 1.105 of include/port.h all files that inlcude postgres_fe.h are forced to use pg_qsort() instead of qsort. Was that intended? Jan -- #==# # It's easier to get forgiveness for being wrong than for being right. # #

Re: [HACKERS] Replication documentation addition

2006-10-27 Thread Richard Troy
On Wed, 25 Oct 2006, Bruce Momjian wrote: ...snip... Data partitioning is often done within a single database on a single server and therefore, as a concept, has nothing whatsoever to do with different servers. Similarly, the second paragraph of this section is Uh, why would someone

Re: [HACKERS] qsort-pg_qsort in 8.2

2006-10-27 Thread Tom Lane
Jan Wieck [EMAIL PROTECTED] writes: since rev. 1.105 of include/port.h all files that inlcude postgres_fe.h are forced to use pg_qsort() instead of qsort. Was that intended? Is it a problem? If you really want the platform qsort you can #undef qsort, but I don't entirely see why you would.

Re: [HACKERS] qsort-pg_qsort in 8.2

2006-10-27 Thread Jan Wieck
On 10/27/2006 3:47 PM, Tom Lane wrote: Jan Wieck [EMAIL PROTECTED] writes: since rev. 1.105 of include/port.h all files that inlcude postgres_fe.h are forced to use pg_qsort() instead of qsort. Was that intended? Is it a problem? If you really want the platform qsort you can #undef qsort,

Re: [HACKERS] qsort-pg_qsort in 8.2

2006-10-27 Thread Tom Lane
Jan Wieck [EMAIL PROTECTED] writes: On 10/27/2006 3:47 PM, Tom Lane wrote: Is it a problem? If you really want the platform qsort you can #undef qsort, but I don't entirely see why you would. It forces client programs to link against libpgport, which they didn't have to before. Client

Re: [HACKERS] [PATCHES] WAL logging freezing

2006-10-27 Thread Tom Lane
Simon Riggs [EMAIL PROTECTED] writes: [I've just coded the relcache invalidation WAL logging patch also.] What? That doesn't make any sense to me. regards, tom lane ---(end of broadcast)--- TIP 3: Have you checked our

Re: [HACKERS] [PATCHES] WAL logging freezing

2006-10-27 Thread Simon Riggs
On Fri, 2006-10-27 at 12:01 -0400, Tom Lane wrote: Heikki Linnakangas [EMAIL PROTECTED] writes: Tom Lane wrote: I think it's premature to start writing patches until we've decided how this really needs to work. Not logging hint-bit updates seems safe to me. As long as we have the

Re: [HACKERS] pg_internal.init is hazardous to your health

2006-10-27 Thread Simon Riggs
On Wed, 2006-10-18 at 15:56 +0100, Simon Riggs wrote: On Tue, 2006-10-17 at 22:29 -0400, Tom Lane wrote: The answer that ultimately emerged was that they'd been running a nightly maintenance script that did REINDEX SYSTEM (among other things I suppose). The PITR base backup included

Re: [HACKERS] [PATCHES] WAL logging freezing

2006-10-27 Thread Simon Riggs
On Fri, 2006-10-27 at 22:19 +0100, Simon Riggs wrote: So we definitely have a nasty problem here. VACUUM FREEZE is just a loaded gun right now. Maybe it's OK to say that during WAL replay we keep it all the way back to the freeze horizon, but I'm not sure how we keep the system from

Re: [HACKERS] [PATCHES] GUC description cleanup

2006-10-27 Thread Josh Berkus
Neil, Sure, I'll wait for 8.3 to branch. I have some cleanup I want to do for 8.3 too. Josh Berkus PostgreSQL @ Sun San Francisco 415-752-2500 ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ?