Re: [HACKERS] random system table corruption ...

2005-09-11 Thread Hans-Jürgen Schönig
Tom Lane wrote: =?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= [EMAIL PROTECTED] writes: in the past we have faced a couple of problems with corrupted system tables. this seems to be a version independent problem which occurs on hackers' from time to time. i have checked a broken file and i have

Re: [HACKERS] random system table corruption ...

2005-09-11 Thread Hans-Jürgen Schönig
Alvaro Herrera wrote: On Sun, Sep 11, 2005 at 01:12:34PM +0200, Hans-Jürgen Schönig wrote: in the past we have faced a couple of problems with corrupted system tables. this seems to be a version independent problem which occurs on hackers' from time to time. i have checked a broken file and i

Re: [HACKERS] Hide source code

2005-07-10 Thread Hans-Jürgen Schönig
Márcio A. Sepp wrote: Hi, I'm looking for a way to hide the souce code of my system (functions). In Oracle, I can wrap it. Is there something that I can use to hide and/or wrap my source code? Att. Márcio A. Sepp ZYON TECNOLOGIA LTDA Currently there is no way to do that.

Re: [HACKERS] commit_delay, siblings

2005-06-22 Thread Hans-Jürgen Schönig
Tom Lane wrote: Josh Berkus josh@agliodbs.com writes: I've been trying to get a test result for 8.1 that shows that we can eliminate commit_delay and commit_siblings, as I believe that these settings no longer have any real effect on performance. I don't think they ever did :-(. The

Re: [HACKERS] Autovacuum in the backend

2005-06-17 Thread Hans-Jürgen Schönig
* Reduces the total amount of time the system spends vacuuming since it only vacuums when needed. Can be easily done with cron. * Keeps stats up-to-date automatically Which can be done with cron * Eliminates newbie confusion RTFM * Eliminates one of the criticisms that the public

Re: [HACKERS] Autovacuum in the backend

2005-06-16 Thread Hans-Jürgen Schönig
2) By no fault of its own, autovacuum's level of granularity is the table level. For people dealing with non-trivial amounts of data (and we're not talking gigabytes or terabytes here), this is a serious drawback. Vacuum at peak times can cause very intense IO bursts -- even with the enhancements

Re: [HACKERS] Autovacuum in the backend

2005-06-16 Thread Hans-Jürgen Schönig
Alvaro Herrera wrote: On Thu, Jun 16, 2005 at 04:20:34PM +1000, Gavin Sherry wrote: 2) By no fault of its own, autovacuum's level of granularity is the table level. For people dealing with non-trivial amounts of data (and we're not talking gigabytes or terabytes here), this is a serious

Re: [HACKERS] executing OS programs from pg

2005-06-04 Thread Hans-Jürgen Schönig
Gevik babakhani wrote: Dear people, Does anyone know how to execute an OS command from pgsql. I would like to create a trigger that op on firing would run/execute an external program. Does such functionality exist or do I have to write my own trigger function in C. Reagrds, Gevik.

Re: [HACKERS] Tablespaces

2005-06-03 Thread Hans-Jürgen Schönig
Christopher Kings-Lynne wrote: I'm interested if anyone is using tablespaces? Do we have any actual reports of people actually using them, to advantage, in the field?? Maybe the next postgresql.org survey could be on tablespace usage? Chris I have seen that tablespaces are widely used

Re: [HACKERS] NOLOGGING option, or ?

2005-06-01 Thread Hans-Jürgen Schönig
Personally I don't think that it is a good idea to do that. People will tend to corrupt their systems because they want speed (sometimes without thinking about the consequences). I can only think of one scenario where nologging would actually make sense: Many people use session tables to keep

Re: [HACKERS] regarding storage in postgres

2005-06-01 Thread Hans-Jürgen Schönig
Nithin Sontineni wrote: Hi, i want to know how postgres will store a relation in pages and where can i see the code related to this in the source code.Plz help me . S.Nithin __ Discover Yahoo! Use Yahoo! to plan a weekend, have

Re: [HACKERS] WAL replay failure after file truncation(?)

2005-05-27 Thread Hans-Jürgen Schönig
Tom Lane wrote: Manfred Koizar [EMAIL PROTECTED] writes: [...] Is it sufficient to remember just the relation and the block number or do we need the contents a well? I meant the contents of the WAL record, not the original block contents. Anyway, I think it's not needed. Oh, I see.

Re: [HACKERS] WAL replay failure after file truncation(?)

2005-05-27 Thread Hans-Jürgen Schönig
Tom Lane wrote: =?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= [EMAIL PROTECTED] writes: My question is: What happens if the system is killed inside rebuild_relation or inside swap_relfilenodes which is called by rebuild_relation? Nothing at all, because the system catalog updates aren't

Re: [HACKERS] REINDEX ALL

2005-04-05 Thread Hans-Jürgen Schönig
Joshua D. Drake wrote: Hello, We are considering submitting a patch for REINDEX ALL. What syntax would we like? REINDEX ALL? REINDEX DATABASE ALL? Sincerely, Joshua D. Drake -- Command Prompt, Inc., Your PostgreSQL solutions company. 503-667-4564 Custom programming, 24x7 support, managed services,

Re: [GENERAL] [HACKERS] plPHP in core?

2005-04-02 Thread Hans-Jürgen Schönig
In the past couple of years a lot of stuff has been removed from the core - even the ODBC driver (which is ways more important than, let's say, PL/PHP) has been removed from the core - so why should a new PL be integrated now if considerably more important components will remain external?

Re: [HACKERS] Cost of XLogInsert CRC calculations

2005-03-11 Thread Hans-Jürgen Schönig
One of the things I was thinking about was whether we could use up those cycles more effectively. If we were to include a compression routine before we calculated the CRC that would - reduce the size of the blocks to be written, hence reduce size of xlog - reduce the following CRC calculation I

[HACKERS] Question about Unrecognized SPI code ...

2005-02-22 Thread Hans-Jürgen Schönig
I just found an interesting issue in recent PostgreSQL releases: CREATE VIEW view_nonsense AS SELECT 1 AS a, 2 AS b; CREATE RULE myrule AS ON INSERT TO view_nonsense DO INSTEAD NOTHING; CREATE OR REPLACE FUNCTION debug() RETURNS boolean AS ' DECLARE BEGIN

Re: [HACKERS] Connect By for 8.0

2005-02-06 Thread Hans-Jürgen Schönig
Neil Conway wrote: Robert Treat wrote: Actually i believe people want both syntax's as the former is used by oracle and the latter by db2 (iirc) I think the past consensus has been to adopt the SQL standard syntax. Is there any reason to also support the Oracle syntax other than for

Re: [HACKERS] some linker troubles with rc5 on sun studio 9 ...

2005-01-29 Thread Hans-Jürgen Schönig
Tom Lane wrote: =?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= [EMAIL PROTECTED] writes: tuptoaster.c, line 966: member can not have variably modified type: data We've seen that before. Apparently there are some versions of Sun's compiler that are too stupid to reduce this constant expression to a

Re: [HACKERS] Two-phase commit for 8.1

2005-01-23 Thread Hans-Jürgen Schönig
Heikki, What is still missing to complete the 2PC patch?. Regards, Hans Heikki Linnakangas wrote: On Wed, 19 Jan 2005, Tom Lane wrote: Marc G. Fournier [EMAIL PROTECTED] writes: If the patch is ready to be committed early in the cycle, I'd say most definitely ... just

Re: [HACKERS] ARC patent

2005-01-18 Thread Hans-Jürgen Schönig
I think the ARC issue is the same with any other patent ... Recently somebody pointed me to a nice site showing some examples: http://www.base.com/software-patents/examples.html Looking at the list briefly I can find at least five patent problems using any operating system with PostgreSQL. From

[HACKERS] some linker troubles with rc5 on sun studio 9 ...

2005-01-13 Thread Hans-Jürgen Schönig
i have encountered some problems with sun studio 9 (version 8 always worked for me). obviously it does not like my linker flags ... when running the following script I get ... #!/bin/sh LD_LIBRARY_PATH=/opt/sfw/lib:/usr/local/lib:$LD_LIBRARY_PATH #

[HACKERS] Interesting parsing problem ...

2004-11-20 Thread Hans-Jürgen Schönig
I am willing to add NOWAIT to a couple of commands and I have tried to resolve a bison problem for quite some time now: As a first step I wanted to add NOWAIT to DELETE: DELETE FROM ... WHERE ... NOWAIT; Therefore I used:

[HACKERS] is it a known issue or just a bug?

2004-10-04 Thread Hans-Jürgen Schönig
Folks, Last week one of my students confronted me with a nice little SQL statement which made me call gdb ... Consider the following scenario: [EMAIL PROTECTED] bug]$ cat q1.sql create temporary sequence seq_ab; select * from (Select nextval('seq_ab') as nv, * from(

[HACKERS] Interesting issue with SFR in PL/pgSQL ...

2004-09-18 Thread Hans-Jürgen Schönig
I am about to port a large database application from 7.4.x* to 8.0 (mainly to test 8.0). There is an interesting thing I have come across: CREATE OR REPLACE FUNCTION xy(int4) RETURNS SETOF RECORD AS ' DECLARE v_isALIAS FOR $1; v_loop int4;

Re: [HACKERS] Regression failure with PostgreSQL 8beta1 and Intel

2004-08-12 Thread Hans-Jürgen Schönig
Robert, Are you planning to use Intel's C compiler in production? We tried that some time ago and corrupted our database cluster almost instantly (for some reason we have not investigated any further). I highly recommend to do some stress testing to see if everything works nicely. I'd be pleased

Re: [HACKERS] Version Numbering -- The great debate

2004-08-01 Thread Hans-Jürgen Schönig
Joshua D. Drake wrote: Hello, Version 7.5 is as close to a major release as I have seen in the almost 9 years I have been using PostgreSQL. This release brings about a lot of enterprise features that have been holding back PostgreSQL in a big way for for a long time. All of my serious

Re: [HACKERS] storage engine , mysql syntax CREATE TABLE t (i INT)

2004-07-29 Thread Hans-Jürgen Schönig
Pierre Emmanuel Gros wrote: In mysql, we can wrote a create table like CREATE TABLE t (i INT) ENGINE = INNODB||BDB|; where the storage engine is the innodb one. This allow to have differents kind of storage format, and allow to easly implements memory table or remote table. I try to make the

Re: [HACKERS] parameter hints to the optimizer

2004-07-21 Thread Hans-Jürgen Schönig
Merlin Moncure wrote: Merlin, This will most likely never be accepted by the core team because it is better to spend more time on fixing the planner than to invent some non-standard. As far as I know some databases support a syntax where hints can be hidden in comments or something like that.

Re: [HACKERS] Call for 7.5 feature completion

2004-05-19 Thread Hans-Jürgen Schönig
Josh Berkus wrote: People, So, why tie it into the PostgreSQL source tree? Won't it be popular enough to live on its own, that it has to be distributed as part of the core? Personally, I find it rather inconsistent to have any PL, other than PL/pgSQL, as part of the core distribution -- when

Re: [HACKERS] Call for 7.5 feature completion

2004-05-17 Thread Hans-Jürgen Schönig
Marc G. Fournier wrote: On Mon, 17 May 2004, Bruce Momjian wrote: Marc G. Fournier wrote: Agreed, but you are a me too, not a huge percentage of our userbase. How do you know? Have you polled our complete userbase? Basically, after 6-7 months of development, I want more than a vacuum patch and

Re: [HACKERS] Call for 7.5 feature completion

2004-05-17 Thread Hans-Jürgen Schönig
Not being the author, I don't know. And in the case of PITR, the pre-7.4 author is different than the post-7.4 author. However, if I was personally responsible for holding up the release of a project due to a feature that I had vowed to complete, I would feel morally compelled to get it done.

Re: [HACKERS] Aggregation question

2004-05-08 Thread Hans-Jürgen Schönig
if you want to put 1000 columns into one table, your data structure needs some further investigation. you are trying to solve the wrong problem. Regards, Hans Dilip Angal wrote: Hi I have a situation that I need flexible number columns to model the business requirements. It could go up

Re: [HACKERS] Call for 7.5 feature completion

2004-05-03 Thread Hans-Jürgen Schönig
Andrew Dunstan wrote: Marc G. Fournier wrote: Personally, I think there are alot of large features that ppl have been hard at getting complete in time for June 1st that we should stick to it, else we're going to end up with 'yet another release' delayed in hopes that the outstanding bugs in Win32

Re: [HACKERS] PITR Phase 2 - Design Planning

2004-04-27 Thread Hans-Jürgen Schönig
Simon Riggs wrote: Since Phase1 is functioning and should hopefully soon complete, we can now start thinking about Phase 2: full recovery to a point-in-time. Previous thinking was that a command line switch would be used to specify recover to a given point in time, rather than the default, which

Re: [HACKERS] What can we learn from MySQL?

2004-04-23 Thread Hans-Jürgen Schönig
Karel Zak wrote: On Fri, Apr 23, 2004 at 01:05:21PM +0700, David Garamond wrote: So in my opinion, as long as the general awareness about RDBMS (on what tasks/responsibilities it should do, what features it generally has to have, etc) is low, people will be looking at MySQL as good enough and

Re: [HACKERS] Socket communication for contrib

2004-04-06 Thread Hans-Jürgen Schönig
Paul Tillotson wrote: Hans et al: People asked me to put a simple extension for PostgreSQL Open Source. The attached package contains a simple functions whichs tells a remote TCP socket that somebody is about to modify a certain table. I would very much appreciate being able to receive

[HACKERS] Socket communication for contrib

2004-04-05 Thread Hans-Jürgen Schönig
Community, People asked me to put a simple extension for PostgreSQL Open Source. The attached package contains a simple functions whichs tells a remote TCP socket that somebody is about to modify a certain table. Why would anybody do that? Currently PostgreSQL provides a nice LISTEN / NOTIFY

Re: [HACKERS] Socket communication for contrib

2004-04-05 Thread Hans-Jürgen Schönig
Tom Lane wrote: =?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= [EMAIL PROTECTED] writes: People asked me to put a simple extension for PostgreSQL Open Source. The attached package contains a simple functions whichs tells a remote TCP socket that somebody is about to modify a certain table. Doesn't

Re: [HACKERS] Socket communication for contrib

2004-04-05 Thread Hans-Jürgen Schönig
Tom Lane wrote: =?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= [EMAIL PROTECTED] writes: Nested transactions: I don't think nested transactions will really help to resolve the core problem. Committing a subtransaction will most likely not imply that a parent transaction can be committed as well.

Re: [HACKERS] Socket communication for contrib

2004-04-05 Thread Hans-Jürgen Schönig
Is it better in /contrib or gborg? I have learned (please correct me if I am wrong) that people tend to look in contrib before they look at gborg. Also, when people ask for training most of them ask for stuff in contrib. It is people's mind that contrib is somehow a source of additional,

Re: [HACKERS] Socket communication for contrib

2004-04-05 Thread Hans-Jürgen Schönig
Jeff wrote: On Apr 5, 2004, at 12:35 PM, Bruce Momjian wrote: For me, /contrib is for things closely tied to the backend code, like GIST stuff, and for key tools, like conversion programs. something that would be useful (and perhaps may be part of that pgfoundry or whatever its called movement)

Re: [HACKERS] COPY formatting

2004-03-17 Thread Hans-Jürgen Schönig
Karel Zak wrote: Hi, in TODO is item: * Allow dump/load of CSV format. I don't think it's clean idea. Why CSV and why not something other? :-) A why not allow to users full control of the format by they own function. It means something like: COPY tablename [ ( column [, ...] ) ] TO

Re: [HACKERS] Regression tests on Nintendo Game Cube

2004-03-04 Thread Hans-Jürgen Schönig
Merlin Moncure wrote: Today Michael Steil and I have tested PostgreSQL 7.4.1 on Nintendo Game Cubes. All regression test (but stats - stats collector was off instead of on) have passed successfully. What about the XBOX? :-) Merlin as far as i know the xbox is based on x86 hardware so it

[HACKERS] Regression tests on Nintendo Game Cube

2004-03-03 Thread Hans-Jürgen Schönig
Folks, Today Michael Steil and I have tested PostgreSQL 7.4.1 on Nintendo Game Cubes. All regression test (but stats - stats collector was off instead of on) have passed successfully. [EMAIL PROTECTED] root]# uname -a Linux 192.168.0.47 2.6.3 #20 Wed Mar 3 12:22:07 CET 2004 ppc unknown

Re: [HACKERS] Tablespaces

2004-02-26 Thread Hans-Jürgen Schönig
Gavin Sherry wrote: Hi all, I've been looking at implementing table spaces for 7.5. Some notes and implementation details follow. -- Type of table space: There are many different table space implementations in relational database management systems. In my implementation, a table space in

Re: [HACKERS] Tablespaces

2004-02-26 Thread Hans-Jürgen Schönig
Gavin Sherry wrote: Is it possible to put WALs and CLOGs into different tablespaces? (maybe different RAID systems). Some companies want that ... I wasn't going to look at that just yet. There is of course the temporary hack of symlinking WAL else where. that's what we do now. we symlink

Re: [HACKERS] [SQL] Materialized View Summary

2004-02-24 Thread Hans-Jürgen Schönig
Richard Huxton wrote: On Tuesday 24 February 2004 16:11, Jonathan M. Gardner wrote: I've written a summary of my findings on implementing and using materialized views in PostgreSQL. I've already deployed eagerly updating materialized views on several views in a production environment for a

Re: [HACKERS] [PATCHES] NO WAIT ...

2004-02-18 Thread Hans-Jürgen Schönig
Tatsuo Ishii wrote: I agree with Tom here. I have used the Oracle NOWAIT feature in the past and think it is a great feature IMHO. But when you need to use it, you want it to apply very specifically to a single statement. Using a sledge hammer when you need a tweezers isn't the right way to

Re: [HACKERS] No Timeout in SELECT..FOR UPDATE

2004-02-15 Thread Hans-Jürgen Schönig
Anthony, What you need is a NO WAIT option. This is already on the TODO list. This feature should be implemented as GUC (see TODO list). I don't think that a timeout would be accepted by the core team (doesn't make too much sense to me either). Telling PostgreSQL not to wait for certain locks

Re: [HACKERS] Recursive queries?

2004-02-04 Thread Hans-Jürgen Schönig
Christopher Kings-Lynne wrote: There is a website somewhere where a guy posts his patch he is maintaining that does it. I'll try to find it... Found it. Check it out: http://gppl.terminal.ru/index.eng.html Patch is current for 7.4, Oracle syntax. Chris I had a look at the patch. It is

Re: [HACKERS] Recursive queries?

2004-02-04 Thread Hans-Jürgen Schönig
Tom Lane wrote: =?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= [EMAIL PROTECTED] writes: Does this patch have a serious chance to make it into Pg some day? I think Oracle's syntax is not perfect but is easy to handle and many people are used to it. In people's mind recursive queries = CONNECT BY and

[HACKERS] Bitmap index

2004-02-01 Thread Hans-Jürgen Schönig
Hello ... I remember that somebody was working on some sort of bitmap index some time ago (maybe 1 year or two). Does anybody know if there is some sort of half-ready code or so around? Does anybody know if there is somebody working on that? Regards, Hans -- Cybertec Geschwinde u Schoenig

Re: [HACKERS] planner, how difficult to ...

2004-01-05 Thread Hans-Jürgen Schönig
Peter Eisentraut wrote: Keith Bottner wrote: How integrated is the planner into the database? Put another way, how hard would it be to separate the planner from the core database in such a way that it could be easily replaced either during compilation or even better with a runtime setting?

Re: [HACKERS] statistics about tamp tables ...

2003-11-29 Thread Hans-Jürgen Schönig
Alvaro Herrera wrote: On Wed, Nov 26, 2003 at 05:34:28PM +0100, Hans-Jürgen Schönig wrote: The reason why I came up with this posting is slightly different: Assume a JDBC application which works with PostgreSQL + some other database. If you want to use both databases without PostgreSQL being

Re: [HACKERS] ObjectWeb/Clustered JDBC

2003-11-28 Thread Hans-Jürgen Schönig
the statement about missing DECLARE CURSOR ? The backend supports it? Dave On Sun, 2003-11-23 at 12:12, Hans-Jürgen Schönig wrote: Peter Eisentraut wrote: I was at the ObjectWeb Conference today; ObjectWeb (http://www.objectweb.org) being a consortium that has amassed quite an impressive array of open

Re: [HACKERS] statistics about tamp tables ...

2003-11-28 Thread Hans-Jürgen Schönig
Tom Lane wrote: =?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= [EMAIL PROTECTED] writes: Recently I have come across a simple issue which made me think about it. When we create a tmp table (SELECT INTO, CREATE TABLE AS) the planner won't know anything about its content after creating it. Run ANALYZE

[HACKERS] statistics about tamp tables ...

2003-11-26 Thread Hans-Jürgen Schönig
Recently I have come across a simple issue which made me think about it. When we create a tmp table (SELECT INTO, CREATE TABLE AS) the planner won't know anything about its content after creating it. Many people use temp tables heavy when the amount of data for a certain analysis has to be

Re: [HACKERS] Commercial binary support?

2003-11-24 Thread Hans-Jürgen Schönig
Joshua D. Drake wrote: Hello, I think what the person is looking for is: COMPANY PostgreSQL for Red Hat Enterprise 3.0. They probably have some commercial mandate that says that they have to have a commercial company backing the product itself. This doesn't work for most PostgreSQL companies

Re: [HACKERS] Commercial binary support?

2003-11-19 Thread Hans-Jürgen Schönig
Robert Treat wrote: If by up to date you mean 7.4, your probably going to have to wait, but I believe that Command Prompt, dbExperts, Red Hat, and SRA all have some type of binary based support available. Don't forget to mention us ... ;). Cheers, Hans -- Cybertec Geschwinde u Schoenig

Re: [HACKERS] Commercial binary support?

2003-11-19 Thread Hans-Jürgen Schönig
Nigel J. Andrews wrote: On Wed, 19 Nov 2003, Bruce Momjian wrote: Marc G. Fournier wrote: On Wed, 19 Nov 2003, Michael Meskes wrote: On Tue, Nov 18, 2003 at 04:19:35PM -0600, Austin Gonyou wrote: I've been looking all over but I can't seem to see a company that is providing *up-to-date*

Re: [HACKERS] Proposal for a cascaded master-slave replication system

2003-11-12 Thread Hans-Jürgen Schönig
Jan, This is EXACTLY what we have been waiting for (years) :) :) :). If you need somebody for testing or documentation just drop me a line. Cheers, Hans Jan Wieck wrote: Hans-Jürgen Schönig wrote: Jan, First of all we really appreciate that this is going to be an Open Source project

[HACKERS] bug in 7.4 ...

2003-11-11 Thread Hans-Jürgen Schönig
I have seen that a bug related to duplicated keys is in 7.4rc2. As far as I have seen a bug like that has already been discovered during the 7.3 era. Is this bug going to be fixed? Here s the description: DROP TABLE public.testtabelle; begin; CREATE TABLE public.testtabelle ( c000

Re: [HACKERS] Call for port reports

2003-10-25 Thread Hans-Jürgen Schönig
Regression testing on AIX 5 using 7.4beta5: polymorphism ... ok stats... ok == shutting down postmaster == == All 93 tests passed. == bash-2.05$ uname -a AIX sn2 1 5 0044276A4C00

Re: [HACKERS] Parallel postgresql

2003-10-14 Thread Hans-Jürgen Schönig
Bruce Momjian wrote: Martin Rusoff wrote: I was just contemplating how to make postgres parallel (for DSS applications)... Has anyone done work on this? It looks to me like there are a couple of obvious places to add parallel operation: Stage 1) I/O , perhaps through MPIO - would improve

Re: [HACKERS] 2-phase commit

2003-10-14 Thread Hans-Jürgen Schönig
I'm tired of this kind of 2PC is too slow arguments. I think Satoshi, the only guy who made a trial implementation of 2PC for PostgreSQL, has already showed that 2PC is not that slow. Where does Satoshi's implementation sit right now? Will it patch to v7.4? Can it provide us with a base to work

Re: [HACKERS] 2-phase commit

2003-10-14 Thread Hans-Jürgen Schönig
Why would you spent time on implementing a mechanism whose ultimate benefit is supposed to be increasing reliability and performance, when you already realize that it will have to lock up at the slightest sight of trouble? There are better mechanisms out there that you can use instead. If you

Re: [HACKERS] Thoughts on maintaining 7.3

2003-10-07 Thread Hans-Jürgen Schönig
Joshua D. Drake wrote: eh.. i could see some things, like tsearch2 or pg_autovacuum, which afaik are almost if not completely compatible with 7.3, which will not get back ported. Also fixes in some of the extra tools like psql could be very doable, I know I had a custom psql for 7.2 that back

Re: [HACKERS] 2-phase commit

2003-10-07 Thread Hans-Jürgen Schönig
Marc G. Fournier wrote: On Sat, 27 Sep 2003, Bruce Momjian wrote: I have been thinking it might be time to start allowing external programs to be called when certain events occur that require administrative attention --- this would be a good case for that. Administrators could configure shell

Re: [HACKERS] Question regarding coopting Database Engine

2003-10-07 Thread Hans-Jürgen Schönig
Steve Yalovitser wrote: Hello, I'd like to know if its possible to coopt the postgres storage subsystem to rely entirely on ram based structures, rather than disk. Any documentation or ideas would be appreciated. Cheers, Steve ---(end of

Re: [HACKERS] Building from CVS issues

2003-09-25 Thread Hans-Jürgen Schönig
[EMAIL PROTECTED] wrote: Hi All, I'm attempting to build from CVS so I can get into a bit of PG dev work. Are there any special tricks with the CVS build or is this a common error? bison -y -d preproc.y preproc.y:5276: warning: previous rule lacks an ending `;' preproc.y:6294: fatal error:

Re: [HACKERS] ecpg build on AIX 4.2.1

2003-09-24 Thread Hans-Jürgen Schönig
Michael Meskes wrote: On Tue, Sep 23, 2003 at 04:21:10PM -0400, Samuel A Horwitz wrote: I am getting Undefined symbols in build ecpg ... ld: 0711-317 ERROR: Undefined symbol: .PQfinish ld: 0711-317 ERROR: Undefined symbol: .PQexec ld: 0711-317 ERROR: Undefined symbol: .PQclear ld: 0711-317 ERROR:

Re: [HACKERS] ecpg build on AIX 4.2.1

2003-09-24 Thread Hans-Jürgen Schönig
Samuel A Horwitz wrote: Are these patches going to be applied soon? Correct. I had the same error on AIX 5.1 last week (see hackers' list). As far as 7.4beta is referred two additional patches are needed (see postings by Tom Lane on this topics). Adding the linker options will solve your

[HACKERS] PostgreSQL 7.4beta3 does not compile on AIX 5 ...

2003-09-21 Thread Hans-Jürgen Schönig
I have tried to perform a regression test on AIX 5.1 (PostgreSQL 7.4beta3). I have encountered an error. gmake[3]: Leaving directory `/usr/src/shopnet/postgresql-7.4beta3/src/interfaces/libpq' gmake[3]: Entering directory `/usr/src/shopnet/postgresql-7.4beta3/src/interfaces/ecpg' gmake -C

Re: [HACKERS] PostgreSQL 7.4beta3 does not compile on AIX 5 ...

2003-09-21 Thread Hans-Jürgen Schönig
Tom Lane wrote: we have fixed the first problem. here is the next one ... libm seems to be missing although it is installed (I have installed it for running 7.3.4). It looks like -lm needs to be added to SHLIB_LINK in ecpglib/Makefile. I had already proposed this patch for SSL-enabled builds:

Re: [HACKERS] Is it a memory leak in PostgreSQL 7.4beta?

2003-09-02 Thread Hans-Jürgen Schönig
This is the Pg backend line from top after about 90 minutes runtime : PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 16083 postgres 17 0 9172 9172 8524 R 94.7 2.4 84:59.68 postmaster No sign of the shared growth stopping at this stage... Pg built with --disable-debug

Re: [HACKERS] Is it a memory leak in PostgreSQL 7.4beta?

2003-09-02 Thread Hans-Jürgen Schönig
I am seeing a slow but steady growth of the backend process on a Linux box (RHL 8.0) --- top shows it growing a few K every few seconds. But I see *zero* growth with the same test on HPUX 10.20. A possible wild card is that the Postgres build I'm using on the Linux box is compiled for profiling

[HACKERS] Is it a memory leak in PostgreSQL 7.4beta?

2003-08-30 Thread Hans-Jürgen Schönig
I have done some beta testing with PostgreSQL 7.4beta2. I have run a simple set of SQL statements 1 million times: -- START TRANSACTION ISOLATION LEVEL READ COMMITTED; INSERT INTO t_data (data) VALUES ('2500'); UPDATE t_data SET data = '2500' WHERE data = '2500'; DELETE FROM t_data WHERE data =

Re: [HACKERS] dblink_ora - a first shot on Oracle ...

2003-07-31 Thread Hans-Jürgen Schönig
There seems to be some disagreement on whether the Oracle lib checks should be in configure for a /contrib module, and I don't know how far Hans is. I will say we are probably looking at 7/28 for beta. I am afraid I won't make it until 7.4beta1. The problem is that I have not managed to have

Re: [HACKERS] PostgreSQL 7.3.3 and Intel C compiler

2003-07-22 Thread Hans-Jürgen Schönig
They do the backend protocol using a custom implementation. Why would they do that? It seems as if their implemenation provides 20% more throughput. I haven't benchmarked with lib pq personally so I cannot tell you more. Hans -- Cybertec Geschwinde u Schoenig Ludo-Hartmannplatz 1/14, A-1160

Re: [HACKERS] PostgreSQL 7.3.3 and Intel C compiler

2003-07-22 Thread Hans-Jürgen Schönig
But the snapshots only are grabbing the xids from each proc, right? Doesn't seem that would take very long. If this is the bottleneck, maybe we need a shared proc lock. I had a hard day testing and verifying this kind of stuff. We have run several hundred benchmarks at the customer using

Re: [HACKERS] PostgreSQL 7.3.3 and Intel C compiler

2003-07-21 Thread Hans-Jürgen Schönig
Bruce Momjian wrote: Hans-J?rgen Sch?nig wrote: This week I have done some performance tuning at a customer's office. We have beaten (demoralized) MS SQL and DB2 in serializable mode and DB2 in any transaction isolation level :). By the way: In case of very simple statements SERIALIZABLE is

Re: [HACKERS] dblink_ora - a first shot on Oracle ...

2003-07-21 Thread Hans-Jürgen Schönig
I think for that very reason (SQL-MED) we need to come to terms with this issue. If/when connections to external data sources is in the backend, you'll have those exact same dependencies. And in fact, we do today: consider '--with-openssl' or '--with-tcl'. I had always assumed we would need

Re: [HACKERS] dblink_ora - a first shot on Oracle ...

2003-07-21 Thread Hans-Jürgen Schönig
Bruce Momjian wrote: Hans, I am a little confused about what you are suggesting. Are you suggesting flag to the make of the contrib module rather than configure tests? I agree this is a killer feature for many people and would like to have it in 7.4. Under these circumstances I was thinking of

Re: [HACKERS] dblink_ora - a first shot on Oracle ...

2003-07-19 Thread Hans-Jürgen Schönig
Bruce Momjian wrote: Joe, I can do the configure detection of the Oracle library needed for /contrib. I don't think we follow the beta freeze as much for /contrib stuff, but this particular /contrib is more integrated into the main system than most. If you want to merge it in during the next

[HACKERS] Exception table ...

2003-07-18 Thread Hans-Jürgen Schönig
I have just seen a nice feature provided by DB2 which seems very useful to me. When importing huge amounts of data (dozens of gigs) with the help of COPY errors might occur from time to time (especially when migrating). The problem with COPY is that it stops after the first error. So if the

[HACKERS] DB2's row_number()

2003-07-17 Thread Hans-Jürgen Schönig
I had a brief look at DB2's row_number function which seems to be pretty useful. What it does is: test=# SELECT row_number(), relname FROM pg_class LIMIT 3; row_number |relname + 1 | pg_description 2 | pg_group 3 | pg_proc (3 rows)

[HACKERS] dblink for Oracle - question ...

2003-06-30 Thread Hans-Jürgen Schönig
A few days ago I have posted a pre-beta version of dblink_ora which is supposed to solve some problems we had here at Cybertec (getting data from an Oracle DB and merge it with PostgreSQL). I have implemented a simple piece of code (more proof of concept than production). Since I have not got

Re: [HACKERS] dblink_ora - a first shot on Oracle ...

2003-06-30 Thread Hans-Jürgen Schönig
Joe Conway wrote: Bruce Momjian wrote: OK, can you take ownership of it? You mean a TODO entry? Sure, as long as Hans is OK with it. Joe I am ok with it. The only problem I have at the moment is that I don't know how to build properly and to check for the libs needed by Oracle. The entire

[HACKERS] Table functions and AS clauses ...

2003-06-16 Thread Hans-Jürgen Schönig
Currently I am able to do ... SELECT dblink_oraconnect('scott/[EMAIL PROTECTED]'); SELECT * FROM dblink_ora('SELECT ename, sal FROM emp') AS (ename text, sal text); The problem is: If I wanted to do a SELECT * FROM dblink_ora('SELECT * FROM emp'); It won't work because dblink_ora

[HACKERS] dblink_ora - a first shot on Oracle ...

2003-06-13 Thread Hans-Jürgen Schönig
Hi there ... I have spent some time working on an Oracle version of dblink. It works quite nicely for me and I hope it does for others. It already supports some basic features such as persistent connection and fetching data. This is not a perfect piece of software and there is lot of room for

Re: [HACKERS] Pre-allocation of shared memory ...

2003-06-12 Thread Hans-Jürgen Schönig
Yeah, I see it in the Mandrake kernel. But it's not in stock 2.4.19, so you can't assume everybody has it. We had this problem on a recent version of good old Slackware. I think we also had it on RedHat 8 or so. Doing this kind of killing is definitely a bad habit. I thought it had it had to

[HACKERS] Pre-allocation of shared memory ...

2003-06-11 Thread Hans-Jürgen Schönig
There is a problem which occurs from time to time and which is a bit nasty in business environments. When the shared memory is eaten up by some application such as Apache PostgreSQL will refuse to do what it should do because there is no memory around. To many people this looks like a problem

Re: [HACKERS] Groups and roles

2003-06-11 Thread Hans-Jürgen Schönig
Tom Lane wrote: Peter Eisentraut [EMAIL PROTECTED] writes: ... Therefore I ask whether everyone agrees that groups and roles are basically equivalent concepts (and perhaps that we might in the future strive to make groups more compatible with the roles as defined in the SQL standard). Or does

Re: [HACKERS] SAP and MySQL ...

2003-06-06 Thread Hans-Jürgen Schönig
Hardly. SAP failed on the attempt to open source ADABAS even more miserably than Borland with Interbase. Now it looks like they found someone who said we know open source, we can do that, oh pick me, me, me, pick mee! that's what i think as well. by the way: did you see that MySQL AB has

Re: [HACKERS] DATA-CUBE in Postgresql.

2003-05-29 Thread Hans-Jürgen Schönig
Srikanth M wrote: Hi! I am interested in adding DATA-CUBE operator(Related to Data Warehousing) to postgresql. I just want to know wheather it is already added to postgres or not. please reply to this mail if you have already worked or still working on it. Bye Srikanth

[HACKERS] Backends created by ODBC live forever ...

2003-03-10 Thread Hans-Jürgen Schönig
We have an application which syncs Access databases with PostgreSQL (I know that this is VERY ugly). It is a simple script based Access application. People wanted that application because they are familiar with Microsoft stuff. When Access establishes a connection to PostgreSQL everything is

Re: [HACKERS] System Tables and Triggers

2003-03-02 Thread Hans-Jürgen Schönig
Hi Stef I had the same problem some time ago. I wanted to define a trigger firing on CREATE TABLE (pg_class). This won't work because in most cases system tables are not accessed using the standard way for processing queries (parse - rewrite - plan - execute). Therefore triggers are not

Re: [HACKERS] PostgreSQL Tuning Results

2003-02-11 Thread Hans-Jürgen Schönig
Gavin Sherry wrote: Hi Chris, On Wed, 12 Feb 2003, Christopher Kings-Lynne wrote: Machine: 256MB RAM, FreeBSD 4.7, EIDE HDD, 1 Ghz Seems like a small amount of memory to be memory based tests with. What about testing sort_mem as well. It would system to me that there would be no

Re: [HACKERS] COUNT and Performance ...

2003-02-06 Thread Hans-Jürgen Schönig
But pgstattuple does do a sequential scan of the table. You avoid a lot of the executor's tuple-pushing and plan-node-traversing machinery that way, but the I/O requirement is going to be exactly the same. I have tried it more often so that I can be sure that everything is in the cache. I

<    1   2   3   >