[GENERAL] debug_print_plan logs table alias used in join, not table name itself

2011-01-19 Thread frank joerdens
I was just experimenting with debug logging on 8.3 and am finding that I can't get it to log the table names involved in a given query, it will always print the table alias used in your join instead, e.g. explaining a query such as woome=# explain select * from webapp_person p join auth_user a on

Re: [GENERAL] debug_print_plan logs table alias used in join, not table name itself

2011-01-19 Thread frank joerdens
On Wed, Jan 19, 2011 at 7:10 PM, Tom Lane wrote: > frank joerdens writes: >> I was just experimenting with debug logging on 8.3 and am finding that >> I can't get it to log the table names involved in a given query, it >> will always print the table alias used in you

[GENERAL] reason for default PGSTAT_ACTIVITY_SIZE

2010-01-05 Thread frank joerdens
>From my angle, it looks as if the default for PGSTAT_ACTIVITY_SIZE is too small, or rather that it ought to be configurable at least, so that longer current_query strings that are shown via pg_stat_get_backend_activity() in the system view pg_stat_activity aren't truncated. The use case is to wat

Re: [GENERAL] reason for default PGSTAT_ACTIVITY_SIZE

2010-01-05 Thread Frank Joerdens
On Tue, Jan 5, 2010 at 6:24 PM, Guillaume Lelarge wrote: [...] >> Is there a good reason to set PGSTAT_ACTIVITY_SIZE at 256 and is my >> only option to recompile the server? Is there a practical >> limit/drawback to making the variable say 4 or 8 times the default? [...] > On current releases, it

[GENERAL] Locking referenced table when creating and dropping tables with foreign key constraints

2010-02-01 Thread frank joerdens
It seems that whenever I create a new empty table with a foreign key constraint, the transaction will acquire an exclusive lock on the referenced table, locking out other writers (not sure if even readers as well), and I don't quite see why that is necessary if the new entity does not contain any r

Re: [GENERAL] Locking referenced table when creating and dropping tables with foreign key constraints (SOLVED)

2010-02-10 Thread Frank Joerdens
On Tue, Feb 2, 2010 at 12:19 AM, Tom Lane wrote: > frank joerdens writes: >> It seems that whenever I create a new empty table with a foreign key >> constraint, the transaction will acquire an exclusive lock on the >> referenced table, locking out other writers (not sure

Re: [GENERAL] minimum hardware for Postgresql Install

2001-08-07 Thread Frank Joerdens
On Tue, Aug 07, 2001 at 08:25:49PM +1000, Michael wrote: > Whats the minimum hardware anyone has installed Postgresql on ? > Someone is thowing out some old pc's and thought I might make use of > one. I tried once to compile some 6.x.x version of Postgresql on a 486SX with 33 Mhz and 8 MB RAM. Th

Re: [GENERAL] minimum hardware for Postgresql Install

2001-08-07 Thread Frank Joerdens
On Tue, Aug 07, 2001 at 01:48:40PM +0300, Einar Karttunen wrote: > On Tue, 7 Aug 2001, Frank Joerdens wrote: > > On Tue, Aug 07, 2001 at 08:25:49PM +1000, Michael wrote: > > > Whats the minimum hardware anyone has installed Postgresql on ? > > > Someone is thowing out

[GENERAL] virtual filesystem atop a PostgreSQL database

2001-09-25 Thread Frank Joerdens
I am wondering whether anyone has already tried it, or if not, looking for starting points as to how to go about doing it: The idea would be to have some kind of tree implementation (e.g. pointers or nested sets) for an SQL database and then to write a Linux driver that would make it possible to

Re: [GENERAL] virtual filesystem atop a PostgreSQL database

2001-09-25 Thread Frank Joerdens
On Tue, Sep 25, 2001 at 02:45:37PM +0200, Jan Pruner wrote: > Hmm, filesystem IS database. > If you need SQL-like functionality to ask for something in your fs why do > you want to mount db like fs? > You can build a sql-like shell !?! EnhancedBASH? I couldn't possibly explain it any better th

Re: [GENERAL] virtual filesystem atop a PostgreSQL database

2001-09-28 Thread Frank Joerdens
On Tue, Sep 25, 2001 at 01:48:26PM -0700, Marshall Spight wrote: > "Jan Pruner" <[EMAIL PROTECTED]> wrote in message > 0109251451420D.01444@jpr">news:0109251451420D.01444@jpr... > > Hmm, filesystem IS database. > > If you need SQL-like functionality to ask for something in your fs why do > > you

Re: [GENERAL] How does TOAST compare to other databases' mechanisms?

2000-10-07 Thread Frank Joerdens
> > idea whether any other databases do it the same way, but simply removing > > the limit on physical tuple length wouldn't have been as nice. Yes, that makes it a lot clearer. This is more or less what I'd been wondering, without really noticing: Why not just remove the limit on physical tuple

Re: [GENERAL] Trying to use PGSql with PHP

2000-10-08 Thread Frank Joerdens
> For a production machine, I typically build and install my entire > "mission-critical" chain of apps. Postgres, PHP, Apache, etc. This helps > avoid a few problems: Red Hat may suddenly upgrade to a newly incompatible > version, or may just change a configuration. I agree. I'd also compile P

[GENERAL] snapshot: dot or dash?

2000-10-08 Thread Frank Joerdens
is the difference? thanks, frank (i want to use the snapshot cuz i need toast, the best thing since sliced bread) -- frank joerdens joerdens new media urbanstr. 116 10967 berlin germany e: [EMAIL PROTECTED] t: +49 (0)30 69597650 f: +49 (0)30 7864046 h: http://www.joerdens.de

Re: [GENERAL] Trying to use PGSql with PHP

2000-10-09 Thread Frank Joerdens
a bit of a newbie with Linux, so any help will be > grateful! > > Thanks, > ---- > John Tsombakos > [EMAIL PROTECTED] <*> -- frank joerdens joerdens new media urbanstr. 116 10967 berlin germany e: [EMAIL PROTECTED] t: +49 (0)30 6

Re: [GENERAL] Query caching

2000-11-01 Thread Frank Joerdens
mark this? How would you benchmark it? Where do you change this cache size? How do you keep the cache from being swapped out to disk (which would presumably all but eradicate the benefits of such a measure)? Cheers Frank -- frank joerdens joerdens new media urbanstr. 116 10967 ber

[GENERAL] TOAST & performance with lots of big columns in a table

2000-12-13 Thread Frank Joerdens
I've got an articles table where I want to store texts, of which several translations exist. Thanks to TOAST I can now store texts of arbitrary length directly in the table, which is already a big advantage over stuffing them into the file system and trying to keep the database and file system in

Re: [GENERAL] TOAST & performance with lots of big columns in a table

2000-12-13 Thread Frank Joerdens
have one table with a 'language' field that stores the information as to whether this is English, French, etc.; and then another table for the meta stuff, that also links to the authors table etc.. So simple. I am a little embarassed. Frank Joerdens wrote: > > I've got an a

[GENERAL] pg_dump segfaults with -z on 6.4

2000-12-31 Thread Frank Joerdens
I'm just trying to upgrade from 6.4 to 7.1 and did a pg_dumpall -oz > outfile or pg_dump -oz database > outfile to catch the permissions, and I get a Segmentation fault. Omitting -z works, but that doesn't cut the mustard cuz I'd have to add all the permission by hand for every single table (

Re: [GENERAL] pg_dump segfaults with -z on 6.4

2001-01-01 Thread Frank Joerdens
Tom Lane wrote: > > The CVS logs show that a likely-looking patch was applied in Dec 1998, > so 6.4.2 probably contains the fix. Update to 6.4.2 (maybe even just > compile and install its pg_dump Very cool. Just compiling and installing pg_dump from 6.4.2 was indeed sufficient to fix the issue

[GENERAL] unnecessary overhead on process startup

2001-01-01 Thread Frank Joerdens
I just noticed that the default order in the PATH to the postgres executable may introduce some unnecessary overhead when starting a process: postmaster: ServerLoop:^I^Ihandling reading 4 postmaster: ServerLoop:^I^Ihandling reading 4 postmaster: ServerLoop:^I^Ihandling writing 4 postmaster: Back

[GENERAL] Performance: Unix sockets vs. TCP/IP sockets

2001-01-25 Thread Frank Joerdens
What performance penalty can I expect when going over TCP/IP sockets instead of Unix sockets? I might have to do that because of some odd configuration on the server that my app will run on. The application (Apache/PHP) is on the same physical host as the Postgresql server. Ta, Frank

Re: [GENERAL] Connection pooling

2001-01-25 Thread Frank Joerdens
On Thu, Jan 25, 2001 at 05:14:50PM +0100, Gilles DAROLD wrote: > Hi, > > With Apache/mod_perl it is very simple to enable DB connection > persistance. > > in your perl script : > > use vars qw($dbh); > > $dbh ||= DBI::connect($datasrc, $dbuser, $dbpwd); > > That create a persistance connectio

Re: [GENERAL] Performance: Unix sockets vs. TCP/IP sockets

2001-01-26 Thread Frank Joerdens
On Thu, Jan 25, 2001 at 11:07:19PM -0500, Tom Lane wrote: > Frank Joerdens <[EMAIL PROTECTED]> writes: > > What performance penalty can I expect when going over TCP/IP sockets > > instead of Unix sockets? > > On a properly designed kernel, there shouldn't

Re: [GENERAL] Working with large text blocks

2001-01-26 Thread Frank Joerdens
On Fri, Jan 26, 2001 at 01:45:33PM -0600, Clinton James wrote: > I have some blocks of text than can be from 2K to 80K in size. I understand > 7.1 will have compression to use with text, but does anyone know of a way I > can use these large text blocks as a field? The unlimited row width feature

Re: [GENERAL] Can PostgreSQL be a mail backend?

2001-02-27 Thread Frank Joerdens
On Tue, Feb 27, 2001 at 03:49:25PM +0100, Morten W. Petersen wrote: > Hi people, > > I'm wondering if postgres could be capable of acting as a > mail storage. This would imply storing messages, from > 1KB to > 100MB in size. The expected volume is 4000 > messages a day, and the database may sto

[GENERAL] Re: With which user Apache accesses PostgreSQL

2001-03-04 Thread Frank Joerdens
On Sun, Mar 04, 2001 at 08:07:20PM -0300, Paulo Parola wrote: [ . . . ] > > > > My question should be: with which user Apache accesses PostgreSQL? From the > message issued by PostgreSQL it is user 'apache'. On most systems it seems to be either wwwrun or nobody by default. > > Does that mean

Re: [GENERAL] Forein Key

2001-03-09 Thread Frank Joerdens
On Fri, Mar 09, 2001 at 03:43:55PM -0300, Marcelo Pereira wrote: > >Hi, > > > >I'm a new user and I would like to know if I can create my table using >forein key's. Sure. Here's an example: test=> CREATE TABLE statename ( code CHAR(2) PRIMARY KEY, test(>

Re: [GENERAL] Data type for storing images?

2001-03-12 Thread Frank Joerdens
On Sun, Mar 11, 2001 at 08:48:21PM -0500, Tom Lane wrote: [ . . . ] > bytea is probably your best bet. The 8k limit is toast in 7.1, btw. Is that whay you named it TOAST, in order to be able to say that? :))) Regards, Frank ---(end of broadcast)-

Re: [GENERAL] RE: finding and removing a constraint...

2001-03-20 Thread Frank Joerdens
On Tue, Mar 20, 2001 at 01:41:22PM -0800, Stephan Szabo wrote: > On Tue, 20 Mar 2001, chris markiewicz wrote: > > > okay, i screwed up. i dropped some triggers from a table. now that table > > is not accessible to me. > > > > can't drop it...can't select...can't pg_dump. > > > > message is er

Re: [GENERAL] RE: finding and removing a constraint...

2001-03-20 Thread Frank Joerdens
On Tue, Mar 20, 2001 at 02:18:23PM -0800, Stephan Szabo wrote: > > > The problem is that the syntax > > > > create table SomeTable ( > > SomeColumn int4 references OtherTable ( SomeColumn ), > > . . . > > > > creates an trigger which you can't drop with drop trigger > > because it doesn

[GENERAL] To BLOB Or Not To BLOB

2000-04-16 Thread Frank Joerdens
rsion is the large object interface (if at all) to be considered stable and ready for production? cheers frank -- frank joerdens joerdens new media heinrich-roller str. 16/17 10405 berlin germany e: [EMAIL PROTECTED] t: +49 30 44055471 f: +49 30 44055475 h: http://www.joerdens.de

[GENERAL] unique row identifier data type exhausted . . .

2000-04-22 Thread Frank Joerdens
ens and how do they do it? Admittedly, 10^9 is a big number but it is far from out of the question that you'd reach it on a really busy database (can't think of a real-world example but that ought to be a moot point), not to mention oids since they are unique across an entire database