Re: [HACKERS] Seqscan in MAX(index_column)

2003-09-05 Thread Christopher Kings-Lynne
A general query cache is something that is fairly clean and which might help both with count(*) and other queries. Many databases has a lot of tables that are more or less stable where this would work fine. From what I have heard mysql has something like this and it works well. For tables

Re: [HACKERS] FK type mismatches?

2003-09-05 Thread Tom Lane
Neil Conway [EMAIL PROTECTED] writes: Should this produce a warning? [ foreign-key reference to column of a different datatype ] Aside from the logical inconsistency, it will also lead to poor performance since the type mismatch will prevent index scans. I've noticed a couple people have

Re: [HACKERS] Prelimiary DBT-2 Test results

2003-09-05 Thread Shridhar Daithankar
On 4 Sep 2003 at 10:53, [EMAIL PROTECTED] wrote: http://developer.osdl.org/markw/44/ I threw together (kind of sloppily) a web page of the data I was starting to collect for our DBT-2 workload (TPC-C derivative) on PostgreSQL 7.3.4. Keep in mind not much database tuning has been done yet.

Re: [HACKERS] TCP/IP with 7.4 beta2 broken?

2003-09-05 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan [EMAIL PROTECTED] writes: There's a lot of confusion around :-) Let me see if I can disentangle some of it. People seem to want two things: 1. if ip4 is being tunneled over ip6 as it is in most Linux distributions, match a corresponding 'host*' line

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Andrew Dunstan
Bruce Momjian wrote: Bruce Momjian wrote: I have written a patch to issue an hint if someone tries to create a function in a language that isn't loaded into the database: test= CREATE FUNCTION xx() RETURNS INT AS ' test' select 1' test- LANGUAGE 'plpgsql';

Re: [HACKERS] Win32 native port

2003-09-05 Thread Darko Prenosil
On Thursday 04 September 2003 09:22, Joerg Hessdoerfer wrote: Hi! Thanks to all who have replied (privately or via the list), it seems sometimes it's just necessary to be a bit insistant! That said, I'm positively surprised by what has been done already (especially Bruce and Marc, this is

Re: [HACKERS] Win32 native port

2003-09-05 Thread Darko Prenosil
On Thursday 04 September 2003 19:20, Peter Eisentraut wrote: Joerg Hessdoerfer writes: I'm currently in the process of setting up my development environment (how the heck do I get bison/flex to compile under MingW/MSYS? Oh my...), Use the Cygwin tools. There is no need for that, MinGW has

Re: [HACKERS] plpython

2003-09-05 Thread elein
NO!!! Don't remove SD and GD!!! They are useful. I use them in several applications, primarily for running aggregates. What needs to be fixed is that the SD needs to be initialized at the start of each statement. Joe Conway just implemented this in Pl/R and Tom Lane had an idea about it too. See

Re: [HACKERS] ANONCVS? Is it being updated correctly?

2003-09-05 Thread Larry Rosenman
--On Thursday, September 04, 2003 16:17:48 -0300 Marc G. Fournier [EMAIL PROTECTED] wrote: The full check out found them :-\ I dunno what was going on. 'k, as I said, for some reason the /projects/cvsroot itself wasn't being updated properly either, so it might be related *shrug* let me

Re: [HACKERS] PG7.5

2003-09-05 Thread Relaxin
As long as you're sure. Bupp Phillips [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Will this have the native Windows port? Marc G. Fournier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 2 Sep 2003, postgresql wrote: Hi all Can anyone tell me the

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Jan Wieck
Redhat 7.1 says The file descriptor sockfd must refer to a socket. If the socket is of type SOCK_DGRAM then the serv_addr address is the address to which datagrams are sent by default, and the only address from which datagrams are received. If Looks like the

[HACKERS] AIX 4.2.1 CVS head and SSL

2003-09-05 Thread Samuel A Horwitz
I get the following errors gmake -C ecpglib all gmake[4]: Entering directory `/usr/local/postgres/pgsql/src/interfaces/ecpg/ecpg lib' ../../../../src/backend/port/aix/mkldexport.sh libecpg.a libecpg.exp gcc -O2 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -Wl,-bnoentry - Wl,-H512

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Tom Lane
Andrew Dunstan [EMAIL PROTECTED] writes: Bruce Momjian wrote: HINT: Perhaps you need to use 'createlang' to load the language into the database, or you mistyped the language name. Why not list out the languages we *do* know about, and tell them it's not in the list? Or is that too much

Re: [HACKERS] TCP/IP with 7.4 beta2 broken?

2003-09-05 Thread Bruce Momjian
Andrew Dunstan wrote: Bruce and I were just discussing this on the phone. It seems we have two basic approaches to problem #2. Either we hack the postmaster so that it will swallow IPv6 addresses in pg_hba.conf even without any real IPv6 support, or we make the default pg_hba.conf contents

Re: [HACKERS] TCP/IP with 7.4 beta2 broken?

2003-09-05 Thread Tom Lane
Andrew Dunstan [EMAIL PROTECTED] writes: OK, now we are getting somewhere. I see that this would work. It's a bit ugly, though - with this plan the sample file in both CVS and the installation won't necessarily be what actually get put in place. Well, like I said, it's not real pretty. But

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Bruce Momjian
Jan Wieck wrote: Redhat 7.1 says The file descriptor sockfd must refer to a socket. If the socket is of type SOCK_DGRAM then the serv_addr address is the address to which datagrams are sent by default, and the only address from which datagrams are

Re: [HACKERS] Seqscan in MAX(index_column)

2003-09-05 Thread Tom Lane
Christopher Browne [EMAIL PROTECTED] writes: Wouldn't this more or less be the same thing as having a trigger that does, upon each insert/delete update pg_counts set count = count + 1 where reltable = 45232;? (... where 1 would be -1 for deletes, and where 45232 is the OID of the table...) I

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Rod Taylor
On Fri, 2003-09-05 at 09:52, Tom Lane wrote: Andrew Dunstan [EMAIL PROTECTED] writes: Bruce Momjian wrote: HINT: Perhaps you need to use 'createlang' to load the language into the database, or you mistyped the language name. Why not list out the languages we *do* know about, and tell

[HACKERS] 64-bit pgsql

2003-09-05 Thread Daniel
Hello, I'm a beginner here at the list, my name is Daniel Pellegrini, graduation student from Brazil with no experience about pgsql. First of all I'd like to say that I have tried other lists before, but I didn't get the answer, or the complete answer. I'm doing a research about DBMSs that run

Re: [HACKERS] Seqscan in MAX(index_column)

2003-09-05 Thread Greg Stark
Bruce Momjian [EMAIL PROTECTED] writes: The FAQ does have the example of using ORDER BY LIMIT 1 for MAX(). What we don't have a workaround for is COUNT(*). I think that will require some cached value that obeys MVCC rules of visibility. Note that that only handles min()/max() for the whole

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Rod Taylor
I'm doing a research about DBMSs that run on new PC 64-bit processors, like Intel Itanium and AMD Opteron. I'd like that you would help me in some questions. First, does pgsql support this architecture? According to Administrator's

Re: [HACKERS] Prelimiary DBT-2 Test results

2003-09-05 Thread Bruce Momjian
Shridhar Daithankar wrote: For heavily updated systems, you should have WAL buffers bit more. I don't know exact imact of that setting though. You could try 32/64/128. On the same note, if you are getting checkpoints too frequently, you can try increasing checkpoint segments. The logs will

[HACKERS] checkpoints too frequent

2003-09-05 Thread Bruce Momjian
Vivek, you reported recently that increasing sort_mem and checkpoint_segments increased performance. Can you run a test to see how much of that improvement was just because of increasing checkpoint_segments? -- Bruce Momjian| http://candle.pha.pa.us [EMAIL

Re: [HACKERS] TCP/IP with 7.4 beta2 broken?

2003-09-05 Thread Andrew Dunstan
Robert Creager wrote: Once upon a time (Fri, 05 Sep 2003 03:16:54 -0400) Andrew Dunstan [EMAIL PROTECTED] uttered something amazingly similar to: Could we get the configure script to do it instead, since it too should know about ip6 capability? (I guess then we'd have pg_hba.conf.sample.in).

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Jeroen Ruigrok/asmodai
-On [20030905 16:42], Rod Taylor ([EMAIL PROTECTED]) wrote: Download 7.4 beta 2 and run regression tests on those platforms. Report back any issues or successes. 7.4 Release candidates will come with a call for reports on platforms that pass the regression tests which are used to make up

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Tom Lane
Jan Wieck [EMAIL PROTECTED] writes: Redhat 7.1 says The file descriptor sockfd must refer to a socket. If the socket is of type SOCK_DGRAM then the serv_addr address is the address to which datagrams are sent by default, and the only address from which

Re: [HACKERS] Planning to force reindex of hash indexes

2003-09-05 Thread Mendola Gaetano
Tom Lane [EMAIL PROTECTED] wrote: I've found a number of infelicities in the hash index code that can't be fixed without an on-disk format change. The biggest one is that the hashm_ntuples field in hash meta pages is only uint32, meaning that hash index space management will become confused

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Jeroen Ruigrok/asmodai
-On [20030905 17:22], Jeroen Ruigrok/asmodai ([EMAIL PROTECTED]) wrote: Well, on Itanium2 on FreeBSD 5.1 it compiles. I just need to get the semaphores to a higher value in order to actually do an initdb. Though, did 7.4 raise the bar on SysV IPC? On my other two boxes I haven't tweaked SysV

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Rod Taylor
On Fri, 2003-09-05 at 11:29, Jeroen Ruigrok/asmodai wrote: -On [20030905 17:22], Jeroen Ruigrok/asmodai ([EMAIL PROTECTED]) wrote: Well, on Itanium2 on FreeBSD 5.1 it compiles. I just need to get the semaphores to a higher value in order to actually do an initdb. Though, did 7.4 raise

Re: [HACKERS] Planning to force reindex of hash indexes

2003-09-05 Thread Tom Lane
Mendola Gaetano [EMAIL PROTECTED] writes: Tom Lane [EMAIL PROTECTED] wrote: I've found a number of infelicities in the hash index code that can't be fixed without an on-disk format change. How can we avoid this kind of mess for the future ? Build a time machine, go back fifteen years, wave a

Re: [HACKERS] thread safety

2003-09-05 Thread Mendola Gaetano
Bruce Momjian [EMAIL PROTECTED] wrote: The thing that slows me down the most --- trips like FOSDEM. I am doing one every month or every other month. That takes 1/4 of each month. The threading discussion took 1/1000 of a month, but I do several hundred of those, so it fills up a month

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Tom Lane
Rod Taylor [EMAIL PROTECTED] writes: did 7.4 raise the bar on SysV IPC? On my other two boxes I haven't tweaked SysV IPC at all (semmni is at 10) and I get initdb. Is this beta 1 or beta 2? Beta 1 has a bug which may require more shared resources than what is available. Actually the bug is

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Jeroen Ruigrok/asmodai
-On [20030905 17:42], Rod Taylor ([EMAIL PROTECTED]) wrote: Is this beta 1 or beta 2? Beta 1 has a bug which may require more shared resources than what is available. Sorry, beta 2. Should've made that clear. -- Jeroen Ruigrok van der Werven asmodai(at)wxs.nl / asmodai PGP fingerprint: 2D92

[HACKERS] Logging improvements and rehashing

2003-09-05 Thread Czuczy Gergely
Hello It would be very nice to create a way to log only bad queries, which's resulted in an error. This way a higher loglevel wouldn't be necessary. one other thing, by sending a SIGHUP to the postmaster it reinits it's config files. Now i've made some store functions in C, and it would be very

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Bruce Momjian
Tom Lane wrote: Andrew Dunstan [EMAIL PROTECTED] writes: Bruce Momjian wrote: HINT: Perhaps you need to use 'createlang' to load the language into the database, or you mistyped the language name. Why not list out the languages we *do* know about, and tell them it's not in the list?

Re: [HACKERS] Seqscan in MAX(index_column)

2003-09-05 Thread scott.marlowe
Would it be possible to catch an unconstrained max(id)/min(id) and rewrite it as select id from table order by id [desc] limit1 on the fly in the parser somewhere? That would require fairly little code, and be transparent to the user. I.e. low hanging fruit. On 5 Sep 2003, Greg Stark wrote:

Re: [HACKERS] Seqscan in MAX(index_column)

2003-09-05 Thread Greg Stark
scott.marlowe [EMAIL PROTECTED] writes: Would it be possible to catch an unconstrained max(id)/min(id) and rewrite it as select id from table order by id [desc] limit1 on the fly in the parser somewhere? That would require fairly little code, and be transparent to the user. I.e. low

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Jeroen Ruigrok/asmodai
-On [20030905 17:52], Tom Lane ([EMAIL PROTECTED]) wrote: Actually the bug is in beta2, not beta1. I'd suggest grabbing the current nightly snapshot (see /dev on the ftp servers) in preference to beta2, if you are on a machine with small SysV IPC limits. Using a snapshot of September the 4th

Re: [HACKERS] C++ and using C functions

2003-09-05 Thread Mendola Gaetano
Vince Vielhaber [EMAIL PROTECTED] wrote: On Tue, 2 Sep 2003, Shridhar Daithankar wrote: On 2 Sep 2003 at 15:50, Czuczy Gergely wrote: -BEGIN PGP SIGNED MESSAGE- i'm using pgsql 7.3.4. how can I fix it? i think so, i should modify the header files, i've tried to put it

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: We could answer my objection about the hint popping out on misspelled language names if the code were to arrange to put out the hint only when the language name is one of plpgsql, pltcl, pltclu, etc. This would have to use a hard-coded list of loadable

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Tom Lane
Jeroen Ruigrok/asmodai [EMAIL PROTECTED] writes: Using a snapshot of September the 4th: creating template1 database in /p/scratch/asmodai/postgresql-snapshot/src/test/r egress/./tmp_check/data/base/1... FATAL: could not create semaphores: No space left on device DETAIL: Failed syscall was

[HACKERS] win32

2003-09-05 Thread luke
Are there any web page or docs on win32 porting of pgsql ? Regards Luke

Re: [HACKERS] Planning to force reindex of hash indexes

2003-09-05 Thread Mendola Gaetano
Tom Lane [EMAIL PROTECTED] wrote: Mendola Gaetano [EMAIL PROTECTED] writes: Tom Lane [EMAIL PROTECTED] wrote: I've found a number of infelicities in the hash index code that can't be fixed without an on-disk format change. How can we avoid this kind of mess for the future ? Build a

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Jan Wieck
Tom Lane wrote: Jan Wieck [EMAIL PROTECTED] writes: Redhat 7.1 says The file descriptor sockfd must refer to a socket. If the socket is of type SOCK_DGRAM then the serv_addr address is the address to which datagrams are sent by default, and the only address

Re: [HACKERS] Logging improvements and rehashing

2003-09-05 Thread Tom Lane
Czuczy Gergely [EMAIL PROTECTED] writes: It would be very nice to create a way to log only bad queries, which's resulted in an error. This way a higher loglevel wouldn't be necessary. We have that (might be new for 7.4, I forget). i've made some store functions in C, and it would be very

Re: [HACKERS] thread safety

2003-09-05 Thread Bruce Momjian
[ CC to advocacy.] Mendola Gaetano wrote: Bruce Momjian [EMAIL PROTECTED] wrote: The thing that slows me down the most --- trips like FOSDEM. I am doing one every month or every other month. That takes 1/4 of each month. The threading discussion took 1/1000 of a month, but I do several

Re: [HACKERS] win32

2003-09-05 Thread Bruce Momjian
luke wrote: Are there any web page or docs on win32 porting of pgsql ? Sure: http://candle.pha.pa.us/main/writings/pgsql/win32.html Let me add that URL to the FAQ. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 359-1001

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Jeroen Ruigrok/asmodai
-On [20030905 18:32], Tom Lane ([EMAIL PROTECTED]) wrote: If it dies even at max_connections 10, that is a *lower* setting than we ever supported before (the pre-7.4 default was 32, and you need 20 or more to run the parallel regression test). I suspect that you actually don't have SysV

Re: [HACKERS] Seqscan in MAX(index_column)

2003-09-05 Thread Tom Lane
Greg Stark [EMAIL PROTECTED] writes: scott.marlowe [EMAIL PROTECTED] writes: Would it be possible to catch an unconstrained max(id)/min(id) and rewrite it as select id from table order by id [desc] limit1 on the fly in the parser somewhere? That would require fairly little code, and be

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Kurt Roeckx
On Fri, Sep 05, 2003 at 09:35:11AM -0400, Jan Wieck wrote: Redhat 7.1 says The file descriptor sockfd must refer to a socket. If the socket is of type SOCK_DGRAM then the serv_addr address is the address to which datagrams are sent by default, and the only

Re: [HACKERS] psql \h alter scrolls of screen

2003-09-05 Thread Robert Treat
On Thu, 2003-09-04 at 21:14, Bruce Momjian wrote: When I do '\h alter' in psql, the content scrolls off my screen. i think you need a bigger screen Should we be using the pager for \h output? in 7.3.4 we do, let me check 7.4...seems to work, though I am on beta1 on this box. Robert Treat

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Tom Lane
Jan Wieck [EMAIL PROTECTED] writes: Tom Lane wrote: What I'm wondering about is whether we are comparing the right number of bytes ... have both address structs been reported to have the same length? Maybe we need a min(). I disagree. If getsockname(), getpeername() or recvfrom() return

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Tom Lane
Jeroen Ruigrok/asmodai [EMAIL PROTECTED] writes: So it does seem 7.4 places higher demand than 7.3.4 on the SysV IPC, It should not; there is something wrong here, not merely a documentation problem. I am wondering whether your 7.4 build fails to select a TAS() implementation --- if so, it

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Bruce Momjian
Tom Lane wrote: Jan Wieck [EMAIL PROTECTED] writes: Tom Lane wrote: What I'm wondering about is whether we are comparing the right number of bytes ... have both address structs been reported to have the same length? Maybe we need a min(). I disagree. If getsockname(), getpeername()

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: We could answer my objection about the hint popping out on misspelled language names if the code were to arrange to put out the hint only when the language name is one of plpgsql, pltcl, pltclu, etc. This would have to use a

Re: [HACKERS] TCP/IP with 7.4 beta2 broken?

2003-09-05 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan [EMAIL PROTECTED] writes: OK, now we are getting somewhere. I see that this would work. It's a bit ugly, though - with this plan the sample file in both CVS and the installation won't necessarily be what actually get put in place. Well, like I said, it's

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: BTW, duplicating the ereport is no fun. I'd suggest the coding style used in some other places, with errhint called in a conditional expression: Why does the ': 0' work? I didn't figure that would work, but it does. The return values of the errxxx()

Re: [HACKERS] Question about Scripting in Postgresql.

2003-09-05 Thread Nico King
well let's say that some values get crupted! what postgres does stops the process, I want it to ignore the erro and continue importing the rest of the data into my tables and sent the error to a log file. how could this be done.? I really need to find a way, any sugesstions are welcome, I even

Re: [HACKERS] TCP/IP with 7.4 beta2 broken?

2003-09-05 Thread Bruce Momjian
Andrew Dunstan wrote: OK, having it comment out the line for the non-ip6 case seems safe enough. Having it add the line for the ip6 case would be more dangerous ISTM. BTW, who if anyone is rewriting initdb in C? I presume we need that for windows so we are not dependent on having a

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Jeroen Ruigrok/asmodai
-On [20030905 20:52], Tom Lane ([EMAIL PROTECTED]) wrote: Alternatively, find out what symbols your compiler predeclares. If my theory is right then your pg_config_os.h file is failing to define HAS_TEST_AND_SET; why? Indeed, pg_config_os.h does not set anything for __ia64__. When I added

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Tom Lane
Jan Wieck [EMAIL PROTECTED] writes: Tom Lane wrote: I was about to say I give up, let's just take out the comparison. Which then get's us back to your concern about assuming that HPUX and Linux manpages can be taken as every platform will and hope all kernels will limit the sender for

Re: [HACKERS] psql \h alter scrolls of screen

2003-09-05 Thread Tom Lane
Robert Treat [EMAIL PROTECTED] writes: On Thu, 2003-09-04 at 21:14, Bruce Momjian wrote: Should we be using the pager for \h output? in 7.3.4 we do, let me check 7.4...seems to work, though I am on beta1 on this box. Hmm. I do not see the pager used for \h in either version, though it does

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Tom Lane
Jan Wieck [EMAIL PROTECTED] writes: I still believe that this is just garbage in the padding bytes after the IPV4 address. Yes. I have been looking at the behavior on my own Linux box, on which it turns out stats are broken too in CVS tip. It is very clear that getsockname() is returning

Re: [HACKERS] TCP/IP with 7.4 beta2 broken?

2003-09-05 Thread Tom Lane
Andrew Dunstan [EMAIL PROTECTED] writes: BTW, who if anyone is rewriting initdb in C? I presume we need that for windows so we are not dependent on having a working shell. Not me ;-). Peter replaced a bunch of other scripts with C code for 7.4, but I dunno if he intends to tackle initdb.

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Jeroen Ruigrok/asmodai
-On [20030905 19:12], Tom Lane ([EMAIL PROTECTED]) wrote: It should not; there is something wrong here, not merely a documentation problem. I am wondering whether your 7.4 build fails to select a TAS() implementation --- if so, it would fall back to implementing spinlocks as semaphores, which

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Jan Wieck
On a second thought, I still believe that this is just garbage in the padding bytes after the IPV4 address. The code currently bind()'s and connect()'s explicitly to an AF_INET address. So all we ever should see is something from and AF_INET address. Everything else in the sin_family has to be

[HACKERS] initdb in C

2003-09-05 Thread Andrew Dunstan
Bruce Momjian wrote: Andrew Dunstan wrote: BTW, who if anyone is rewriting initdb in C? I presume we need that for windows so we are not dependent on having a working shell. initdb rewrite is on my Win32 project page, but no one has offered yet. Connx offered their version done against

[HACKERS] C language context

2003-09-05 Thread Andrew Dunstan
Just how transient is the memory context created for a C language function call? The reason I ask is that I was getting a seg fault when I attempted to pfree something that should have been palloced. When I commented out the calls to pfree it worked fine. Most annoying ;-) I'm still trying to

Re: [osdldbt-general] Re: [HACKERS] Prelimiary DBT-2 Test results

2003-09-05 Thread markw
On 4 Sep, Manfred Spraul wrote: [EMAIL PROTECTED] wrote: http://developer.osdl.org/markw/44/ I threw together (kind of sloppily) a web page of the data I was starting to collect for our DBT-2 workload (TPC-C derivative) on PostgreSQL 7.3.4. Keep in mind not much database tuning has been done

Re: [HACKERS] Stats Collector Error 7.4beta1 and 7.4beta2

2003-09-05 Thread Jan Wieck
Tom Lane wrote: I was about to say I give up, let's just take out the comparison. Your point is interesting but easily avoided; if we aren't going to check fromaddr anymore then there's no need to use recvfrom(), it could as well be recv() and save the kernel a few cycles. Which then get's us

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Tom Lane
Jeroen Ruigrok/asmodai [EMAIL PROTECTED] writes: So I guess the problem lies in the Itanium port. Or could I miss something subtle here? This strengthens my suspicion that we're not finding TAS code for the Itanium, but please see if you can strace or ktrace the postmaster to verify how many

Re: [HACKERS] Logging improvements and rehashing

2003-09-05 Thread Bruce Momjian
Tom Lane wrote: Czuczy Gergely [EMAIL PROTECTED] writes: It would be very nice to create a way to log only bad queries, which's resulted in an error. This way a higher loglevel wouldn't be necessary. We have that (might be new for 7.4, I forget). Yes, new for 7.4:

Re: [HACKERS] Planning to force reindex of hash indexes

2003-09-05 Thread Bruce Momjian
Mendola Gaetano wrote: Tom Lane [EMAIL PROTECTED] wrote: Mendola Gaetano [EMAIL PROTECTED] writes: Tom Lane [EMAIL PROTECTED] wrote: I've found a number of infelicities in the hash index code that can't be fixed without an on-disk format change. How can we avoid this kind of mess

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Peter Eisentraut
Bruce Momjian writes: I don't mind the maintenance. I just want people to stop getting stuck creating plpsql functions. Then put plpgsql in the default installation. -- Peter Eisentraut [EMAIL PROTECTED] ---(end of broadcast)--- TIP 9: the

Re: [HACKERS] 64-bit pgsql

2003-09-05 Thread Bruce Momjian
Tom Lane wrote: Jeroen Ruigrok/asmodai [EMAIL PROTECTED] writes: So I guess the problem lies in the Itanium port. Or could I miss something subtle here? This strengthens my suspicion that we're not finding TAS code for the Itanium, but please see if you can strace or ktrace the

Re: [HACKERS] FK type mismatches?

2003-09-05 Thread Peter Eisentraut
Neil Conway writes: Should this produce a warning? nconway=# create table a (b int4 unique); NOTICE: CREATE TABLE / UNIQUE will create implicit index a_b_key for table a CREATE TABLE nconway=# create table c (d int8 references a (b)); NOTICE: CREATE TABLE will create implicit trigger(s)

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: Peter Eisentraut wrote: Bruce Momjian writes: I don't mind the maintenance. I just want people to stop getting stuck creating plpsql functions. Then put plpgsql in the default installation. Fine with me. I thought others didn't want it. There are

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: Peter Eisentraut wrote: Bruce Momjian writes: I don't mind the maintenance. I just want people to stop getting stuck creating plpsql functions. Then put plpgsql in the default installation. Fine with me. I thought others

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Bruce Momjian
Peter Eisentraut wrote: Bruce Momjian writes: I don't mind the maintenance. I just want people to stop getting stuck creating plpsql functions. Then put plpgsql in the default installation. Fine with me. I thought others didn't want it. -- Bruce Momjian|

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Peter Eisentraut
Tom Lane writes: There are good security arguments not to have it in the default install, no? I think last time the only reason we saw was that dump restoring would be difficult. I don't see any security reasons. -- Peter Eisentraut [EMAIL PROTECTED] ---(end of

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Larry Rosenman
--On Friday, September 05, 2003 22:37:09 +0200 Peter Eisentraut [EMAIL PROTECTED] wrote: Bruce Momjian writes: I don't mind the maintenance. I just want people to stop getting stuck creating plpsql functions. Then put plpgsql in the default installation. Why don't we do that now? It would

Re: [HACKERS] FK type mismatches?

2003-09-05 Thread Peter Eisentraut
Tom Lane writes: If we follow Peter's recently proposed guideline, this would have to be a NOTICE not a WARNING, because the command absolutely is doing what you told it to do. Peter, does that make you uncomfortable? The message itself makes me a bit uncomfortable right now, but a NOTICE

Re: [HACKERS] FK type mismatches?

2003-09-05 Thread Bruce Momjian
Peter Eisentraut wrote: Tom Lane writes: If we follow Peter's recently proposed guideline, this would have to be a NOTICE not a WARNING, because the command absolutely is doing what you told it to do. Peter, does that make you uncomfortable? The message itself makes me a bit

Re: [HACKERS] Logging improvements and rehashing

2003-09-05 Thread Robert Treat
On Fri, 2003-09-05 at 16:41, Bruce Momjian wrote: Tom Lane wrote: Czuczy Gergely [EMAIL PROTECTED] writes: It would be very nice to create a way to log only bad queries, which's resulted in an error. This way a higher loglevel wouldn't be necessary. We have that (might be new for

Re: [HACKERS] FK type mismatches?

2003-09-05 Thread Bruce Momjian
Peter Eisentraut wrote: Neil Conway writes: Should this produce a warning? nconway=# create table a (b int4 unique); NOTICE: CREATE TABLE / UNIQUE will create implicit index a_b_key for table a CREATE TABLE nconway=# create table c (d int8 references a (b)); NOTICE: CREATE

Re: [HACKERS] FK type mismatches?

2003-09-05 Thread Robert Treat
On Fri, 2003-09-05 at 17:06, Peter Eisentraut wrote: Neil Conway writes: Should this produce a warning? nconway=# create table a (b int4 unique); NOTICE: CREATE TABLE / UNIQUE will create implicit index a_b_key for table a CREATE TABLE nconway=# create table c (d int8 references

[HACKERS] Examining the output of: ldd `which postgres`

2003-09-05 Thread Sean Chittenden
% ldd `which postgres` /usr/local/bin/postgres: libintl.so.5 = /usr/local/lib/libintl.so.5 (0x282e6000) libz.so.2 = /lib/libz.so.2 (0x282ef000) libreadline.so.4 = /lib/libreadline.so.4 (0x282fd000) libcrypt.so.2 = /lib/libcrypt.so.2 (0x28325000) libm.so.2 =

Re: [HACKERS] Logging improvements and rehashing

2003-09-05 Thread Bruce Momjian
Robert Treat wrote: On Fri, 2003-09-05 at 16:41, Bruce Momjian wrote: Tom Lane wrote: Czuczy Gergely [EMAIL PROTECTED] writes: It would be very nice to create a way to log only bad queries, which's resulted in an error. This way a higher loglevel wouldn't be necessary. We have

Re: [HACKERS] Examining the output of: ldd `which postgres`

2003-09-05 Thread Bruce Momjian
Sean Chittenden wrote: % ldd `which postgres` /usr/local/bin/postgres: libintl.so.5 = /usr/local/lib/libintl.so.5 (0x282e6000) libz.so.2 = /lib/libz.so.2 (0x282ef000) libreadline.so.4 = /lib/libreadline.so.4 (0x282fd000) libcrypt.so.2 = /lib/libcrypt.so.2

Re: [HACKERS] FK type mismatches?

2003-09-05 Thread Bruce Momjian
Robert Treat wrote: On Fri, 2003-09-05 at 17:06, Peter Eisentraut wrote: Neil Conway writes: Should this produce a warning? nconway=# create table a (b int4 unique); NOTICE: CREATE TABLE / UNIQUE will create implicit index a_b_key for table a CREATE TABLE nconway=#

Re: [HACKERS] FK type mismatches?

2003-09-05 Thread Peter Eisentraut
Robert Treat writes: In all this discussion of NOTICE vs. WARNING, can someone remind me the logic for INFO? I can't seem to recall the differentiator there either. Info is something you request explicitly. In the past, the result for EXPLAIN and SHOW were sent as INFO, but now those are

Re: [HACKERS] Examining the output of: ldd `which postgres`

2003-09-05 Thread Sean Chittenden
% ldd `which postgres` /usr/local/bin/postgres: libintl.so.5 = /usr/local/lib/libintl.so.5 (0x282e6000) libz.so.2 = /lib/libz.so.2 (0x282ef000) libreadline.so.4 = /lib/libreadline.so.4 (0x282fd000) libcrypt.so.2 = /lib/libcrypt.so.2 (0x28325000)

Re: [osdldbt-general] Re: [HACKERS] Prelimiary DBT-2 Test results

2003-09-05 Thread Manfred Spraul
Another question: Is it possible to apply patches to postgresql before a DBT-2 run, or is only patching the kernel supported? -- Manfred ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] Examining the output of: ldd `which postgres`

2003-09-05 Thread Bruce Momjian
Sean Chittenden wrote: We add those to all links, mostly because it is too confusing to do it per link. It doesn't hurt anything because it is dynamically linked, so doesn't take any disk space, and in fact is never called. My concern wasn't for disk space, but for symbol resolution

Re: [HACKERS] Examining the output of: ldd `which postgres`

2003-09-05 Thread Sean Chittenden
We add those to all links, mostly because it is too confusing to do it per link. It doesn't hurt anything because it is dynamically linked, so doesn't take any disk space, and in fact is never called. My concern wasn't for disk space, but for symbol resolution times and

Re: [osdldbt-general] Re: [HACKERS] Prelimiary DBT-2 Test results

2003-09-05 Thread markw
On 6 Sep, Manfred Spraul wrote: Another question: Is it possible to apply patches to postgresql before a DBT-2 run, or is only patching the kernel supported? The data I reported is from a test system I'm using in our lab, so I can certainly try patches. The current state of STP only allows

Re: [HACKERS] Prelimiary DBT-2 Test results

2003-09-05 Thread markw
On 4 Sep, Manfred Spraul wrote: [EMAIL PROTECTED] wrote: http://developer.osdl.org/markw/44/ I threw together (kind of sloppily) a web page of the data I was starting to collect for our DBT-2 workload (TPC-C derivative) on PostgreSQL 7.3.4. Keep in mind not much database tuning has been done

[HACKERS] Notices for redundant operations

2003-09-05 Thread Peter Eisentraut
I found a few notices and warnings that inform you that the command you are executing has no effect because the object is already in the state you want it. I think these are useless, and there is also some inconsistency. Does someone want to defend keeping them? = alter table test set without

Re: [HACKERS] Notices for redundant operations

2003-09-05 Thread Alvaro Herrera
On Sat, Sep 06, 2003 at 12:47:21AM +0200, Peter Eisentraut wrote: I found a few notices and warnings that inform you that the command you are executing has no effect because the object is already in the state you want it. I think these are useless, and there is also some inconsistency. Does

Re: [HACKERS] [PATCHES] Warning for missing createlang

2003-09-05 Thread Rod Taylor
On Fri, 2003-09-05 at 16:54, Bruce Momjian wrote: Peter Eisentraut wrote: Bruce Momjian writes: I don't mind the maintenance. I just want people to stop getting stuck creating plpsql functions. Then put plpgsql in the default installation. Fine with me. I thought others

  1   2   >