Re: [GENERAL] Queries using the C API

2000-05-16 Thread Martijn van Oosterhout
of the database and then allow you to browse backwards and forwards through it (FETCH i beleive). I currently thinking of using this to solve the problem I'm having with pg_dump dumping a 400,000 row table and chewing all of system memory doing it. -- Martijn van Oosterhout [EMAIL PROTECTED] http

Re: [GENERAL] problem with NOTICE: _outNode: don't know how to print type

2000-05-25 Thread Martijn van Oosterhout
from a" is not a legal statement. As the message suggests, a is not a printable type. Maybe you meant a.* ? -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] Questions about CURSORS

2000-05-28 Thread Martijn van Oosterhout
implementation or even a website where I could read about this? Look like you need to learn about transactions. Sorry, can't suggest a good site. -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] Postmaster won't -HUP

2000-05-31 Thread Martijn van Oosterhout
bly not a problem in newer versions though. What version are you using? -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] Errors attempting to insert duplicate values

2000-06-06 Thread Martijn van Oosterhout
on the unique index to fail the insert if there is a duplicate. 3) Use a sequence to generate unique indicies for you? -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] Ah, yet another cause for not binding the right port....

2000-06-10 Thread Martijn van Oosterhout
to the "port". Ofcourse, you just delete it to mix it :) -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] Lock record

2000-06-14 Thread Martijn van Oosterhout
. All I achieves is make any other client trying to access that record jam up. If you want to handle multiple people modifying the same record, maybe you should look into transactions... More info maybe be needed here... HTH, -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com

Re: [GENERAL] copying table to a file

2000-06-17 Thread Martijn van Oosterhout
using the backend permissions, which probably can't write anywhere. Use \copy and be happy... -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] Limit for an transaction

2000-06-27 Thread Martijn van Oosterhout
(usually a typo in the query). Since the query didn't complete sucessfully it must be aborted, and this it ignores all queries until END. -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] disk backups

2000-06-29 Thread Martijn van Oosterhout
to comment on restoring a database from file backups? -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] disk backups

2000-07-01 Thread Martijn van Oosterhout
ha testers for his new version of pg_dump ;-). Unfortunately I think he's only been talking about it on pghackers so far. What versions does it work on? -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] disk backups

2000-07-02 Thread Martijn van Oosterhout
Philip Warner wrote: At 23:34 1/07/00 +1000, Martijn van Oosterhout wrote: Philip Warner needs alpha testers for his new version of pg_dump ;-). Unfortunately I think he's only been talking about it on pghackers so far. What versions does it work on? 6.5.x and 7.0.x. Which

[GENERAL] DateStyle causes drama during upgrade

2000-08-21 Thread Martijn van Oosterhout
so" is a no op. This may be a documented feature, but it's still confusing. This is the postgresql debian package 7.0.2-3. PS. I thought we'd left behind all the US/non-US datestyle distinction when we all started using ISO format (-mm-dd). That was somewhat naive of me, huh? -- Martijn van Oosterhout

[GENERAL] Postgresql doesn't understand the unary plus

2000-10-28 Thread Martijn van Oosterhout
or an explicit cast -- Martijn van Oosterhout

Re: [GENERAL] Best way to replicate a DB between two servers (master/slave)

2000-12-21 Thread Martijn van Oosterhout
. Restarts the postmaster 6. Delete the old, now replaced external DB. The whole process takes about 15 minutes but the external DB is only out for 10 seconds or so. You can run it anytime really. We've found this quite reliable. Hope this helps... -- Martijn van Oosterhout [EMAIL PROTE

Re: [GENERAL] Re: Loading optimization

2001-01-09 Thread Martijn van Oosterhout
On Tue, Jan 09, 2001 at 10:51:35AM -0500, Bruce Momjian wrote: Well, clustering certainly speeds up index access to multiple heap values because duplicate values are all on the same heap page. One thing that is missing is that there is no preference for index scans for clustered indexes.

Re: [GENERAL] Re: couple of general questions

2001-01-20 Thread Martijn van Oosterhout
think I'm attacking you, I'm just trying to help... -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

[GENERAL] Are partial indicies supported?

2001-02-16 Thread Martijn van Oosterhout
the situation please? -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] Case insensitive selects?

2001-02-17 Thread Martijn van Oosterhout
result. Am I missing anything? -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] Annotatable on-line documentation

2001-02-17 Thread Martijn van Oosterhout
. That would stop the discussion problem. -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] Are partial indicies supported?

2001-02-17 Thread Martijn van Oosterhout
, but the query planner sounds like one of the trickier parts of postgres, dunno if I want to look :) -- Martijn van Oosterhout [EMAIL PROTECTED] http://cupid.suninternet.com/~kleptog/

Re: [GENERAL] Weird indices

2001-02-20 Thread Martijn van Oosterhout
On Tue, Feb 20, 2001 at 05:02:22PM -0800, Stephan Szabo wrote: IIRC, There's something which is effectively : estimated rows = most common value's frequency*fraction I think fraction defaults to (is always?) 1/10 for the standard index type. That's where the 50 comes from. And the

Re: [GENERAL] Foreign keys/unique values and views

2001-03-22 Thread Martijn van Oosterhout
On Thu, Mar 22, 2001 at 06:33:16PM -0500, Jan Wieck wrote: Einar Karttunen wrote: How do you put a UNIQUE constraint on the entire inheritance hierarchie? Easy. You make a unique index that covers an entire inheritance hierarchy. If lots of table inherit a field "id" from a single

Re: [GENERAL] Autocommit off in psql??

2001-05-22 Thread Martijn van Oosterhout
data. The only issue is that transactions can't be nested but that shouldn't be a problem. Also, it's possible that the transaction may block other queries on the database but someone with more knowledge than me will have to answer that. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org

[GENERAL] [PATCH] Partial indicies again

2001-07-09 Thread Martijn van Oosterhout
. Oh, and it appears I accidently changed the allowed syntax a bit. You used to have to qualify each field in the partial index predicate with the name of the relation. That's no longer required. Everyone still alive out there? -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog

Re: [GENERAL] Need feedback on possible new feature

2001-07-14 Thread Martijn van Oosterhout
On Sat, Jul 14, 2001 at 12:00:29PM -0400, Tom Lane wrote: Martijn van Oosterhout [EMAIL PROTECTED] writes: Whether it's useful for anyone else is a question, but anyway, it makes an explain type output like: So the assumption is that you'd actually *do* the query, then report back

Re: [GENERAL] Need feedback on possible new feature

2001-07-15 Thread Martijn van Oosterhout
On Sat, Jul 14, 2001 at 10:09:02PM -0400, Tom Lane wrote: Martijn van Oosterhout [EMAIL PROTECTED] writes: Yes, you actually do the query and the show what took how long. As for seperating the parent and child nodes, is that really necessary? If you're going to label the nodes

Re: [GENERAL] [PATCH] Partial indicies again

2001-07-10 Thread Martijn van Oosterhout
as the pg_get_expr function is defined. To make that an internal function I have add it to pg_proc.h and initdb again, right? http://svana.org/kleptog/pgsql/partial-indicies.patch http://svana.org/kleptog/pgsql/expr.c -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would

Re: [GENERAL] [PATCH] Partial indicies again

2001-07-10 Thread Martijn van Oosterhout
On Tue, Jul 10, 2001 at 04:47:49PM +0200, Peter Eisentraut wrote: Martijn van Oosterhout writes: Well, getting closer. Maybe I should start version numbering the patches? For one thing, you might want to post them to pgsql-patches instead. And you should start generating the patches

Re: [GENERAL] Partial Indices vs. mixing columns and functions

2001-07-11 Thread Martijn van Oosterhout
will not support the IS NULL predicates, for the same reason that IS NULL cannot use an index for lookups. I'd love to fix that but that's going to be hard (or rather, I havn't thought of an easy way to do it :). Maybe someone has a better solution. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org

Re: [GENERAL] 2 gig file size limit

2001-07-11 Thread Martijn van Oosterhout
is a non-starter. Many people would have great difficulty hitting 4 terabytes. What the limit on NT? -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came up with a certification system that actually separated those who can barely regurgitate

[GENERAL] [PATCH] Partial indices final?

2001-07-11 Thread Martijn van Oosterhout
someone spots a serious problem. http://svana.org/kleptog/pgsql/partial-indices-7.2.patch Anyway, now it's time to think about after. I can think of: * Complete the removal of EXTEND INDEX * Allow IS NULL in the predicate Anything else? -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org

Re: [GENERAL] Good random numbers in PG? And crypto-wishlist

2001-07-25 Thread Martijn van Oosterhout
by default, running losetup then mount doesn't sound like a major issue to me. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came up with a certification system that actually separated those who can barely regurgitate what they crammed over

[GENERAL] Test patch for timing EXPLAIN

2001-07-19 Thread Martijn van Oosterhout
rows=1314 loops=1) I'm still getting a lot of debug messages so there is still some work to do. Any comments? (Oops, just thought of one issue: Merge Join will not exhaust it's subnodes because it can stop early). http://svana.org/kleptog/pgsql/timing-explain.patch -- Martijn van Oosterhout [EMAIL

Re: [GENERAL] Re: Running Postmaster - PGDATA Variable

2001-07-26 Thread Martijn van Oosterhout
to delete it. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came up with a certification system that actually separated those who can barely regurgitate what they crammed over the last few weeks from those who command secret ninja networking

Re: [GENERAL] Re: nextval, sequences and sequencenames

2001-08-15 Thread Martijn van Oosterhout
call you sequence maincompetencies_pseq or whatever you like. Parsing it out of the system tables might not work in future versions either. The only guarenteed way is to name them yourself. HTH, -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came

Re: [GENERAL] Query Approach and performance

2001-08-17 Thread Martijn van Oosterhout
noticed that query compilation actually took any noticable time. No, postgres doesn't do that but I'm not convinced it would make a difference. HTH, -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came up with a certification system that actually

Re: [GENERAL] slow update but have an index

2001-08-17 Thread Martijn van Oosterhout
sequential scan is faster than 80,000 index scans. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came up with a certification system that actually separated those who can barely regurgitate what they crammed over the last few weeks from those

Re: [GENERAL] slow update but have an index

2001-08-17 Thread Martijn van Oosterhout
is to minimise the number of queries, letting the database do the maximum optimisation possible. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came up with a certification system that actually separated those who can barely regurgitate what

Re: [GENERAL] rotating table question

2001-08-17 Thread Martijn van Oosterhout
; alter table data rename to data_archive; create table data (...); commit; I think with the recent decoupling of filenames and table names that should be possible. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came up with a certification system

Re: [GENERAL] raw partition

2001-08-27 Thread Martijn van Oosterhout
mapped into your address space. I think that for commonly used tables that are under 100K in size (most of the system tables), this is quite a workable idea. If you don't mind keeping them mapped the whole time. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would

[GENERAL] Question about plan

2001-08-29 Thread Martijn van Oosterhout
, internetusage where date_trunc('month',starttime) = '2001-07-01' and minute between starttime::time and starttime::time + (duration || 'seconds')::interval group by date, starttime, minute; -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone

Re: [GENERAL] Create table syntax

2001-08-31 Thread Martijn van Oosterhout
on the website and psql has a brief summary when you type \h CREATE TABLE Unfortunatly my postgres server isn't booting right now (version mismatch) so I can't paste the result here... -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ It would be nice if someone came up

Re: [GENERAL] Error: Bad Timestamp Format

2001-09-12 Thread Martijn van Oosterhout
? HTH, -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ Magnetism, electricity and motion are like a three-for-two special offer: if you have two of them, the third one comes free. ---(end of broadcast)--- TIP 5: Have you

Re: [GENERAL] Error: Bad Timestamp Format

2001-09-12 Thread Martijn van Oosterhout
: DateStyle is ISO with US (NonEuropean) conventions That's -dd-mm What you want is: # show datestyle; NOTICE: DateStyle is ISO with European conventions Which is -mm-dd HTH, -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ Magnetism, electricity and motion are like

Re: [HACKERS] [GENERAL] Where do they find the time??? GreatBridge

2001-09-16 Thread Martijn van Oosterhout
of any right now. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ Magnetism, electricity and motion are like a three-for-two special offer: if you have two of them, the third one comes free. ---(end of broadcast)--- TIP 1

Re: [GENERAL] Getting OID after Insert

2001-10-24 Thread Martijn van Oosterhout
point. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ Magnetism, electricity and motion are like a three-for-two special offer: if you have two of them, the third one comes free. ---(end of broadcast)--- TIP 4: Don't 'kill -9

Re: [GENERAL] deadlocks

2003-06-19 Thread Martijn van Oosterhout
waiting 30183 ?S 0:01 postgres: postgres w2 192.168.5.54 idle 30184 ?S 0:00 postgres: postgres w2 192.168.5.54 idle 30185 ?S 0:00 postgres: postgres w2 192.168.5.54 INSERT waiting -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog

Re: [GENERAL] Selecting dupes from table

2003-06-24 Thread Martijn van Oosterhout
like: select id,url,title from directory, (select url from directory group by url having count(*) 1) as list where list.url = directory.url; I hope I got the syntax right. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ the West won the world not by the superiority

Re: [GENERAL] Selecting dupes from table

2003-06-24 Thread Martijn van Oosterhout
: ERROR: Column reference url is ambiguous Oh right, try: select id,directory.url,title from directory, (select url from directory group by url having count(*) 1) as list where list.url = directory.url; -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ the West won

Re: [GENERAL] How many fields in a table are too many

2003-06-26 Thread Martijn van Oosterhout
can them merrily DROP COLUMN half of them. Until then... The original developers didn't really have a concept of storing different info in different tables. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ the West won the world not by the superiority of its ideas

Re: [GENERAL] adding fields to a table

2003-06-26 Thread Martijn van Oosterhout
://www.postgresql.org/docs/faqs/FAQ.html -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ the West won the world not by the superiority of its ideas or values or religion but rather by its superiority in applying organized violence. Westerners often forget this fact, non

Re: [GENERAL] Large Object table data file does not have expected size

2003-06-27 Thread Martijn van Oosterhout
, Andreas. - This mail sent through IMP: http://horde.org/imp/ ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings -- Martijn van Oosterhout [EMAIL

Re: [GENERAL] Cannot create unique index

2003-07-01 Thread Martijn van Oosterhout
inserted duplicates in the split second there was no index? for safety's sake, I've always reindexed in a transaction: begin; drop index bubba; create index bubba on ... commit; -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ the West won the world

Re: [GENERAL] PSQL NEWBIE - RUNTIME ERROR

2003-07-01 Thread Martijn van Oosterhout
at this point right now. Thanks In Advance, Litso -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ the West won the world not by the superiority of its ideas or values or religion but rather by its superiority in applying organized violence. Westerners often forget

Re: [GENERAL] Datatypes and performance

2003-07-07 Thread Martijn van Oosterhout
the tables in a crash. Basically, do you care about your data? -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ the West won the world not by the superiority of its ideas or values or religion but rather by its superiority in applying organized violence. Westerners often

Re: [GENERAL] Restoring a postgres database

2003-07-09 Thread Martijn van Oosterhout
)--- TIP 8: explain analyze is your friend -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ the West won the world not by the superiority of its ideas or values or religion but rather by its superiority in applying organized violence. Westerners often

Re: [GENERAL] Am I using the SERIAL type properly?

2003-07-11 Thread Martijn van Oosterhout
inserts - Create a trigger so it overrides any value you put in with the next serial Note, you can't really avoid holes in the sequence. This is a FAQ somewhere. -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ the West won the world not by the superiority of its ideas

Re: Fw: [GENERAL] select null + 0 question

2003-07-14 Thread Martijn van Oosterhout
on what the correct answer is, but I beleive the reason it works in Postgres is because the expression is expanded to: WHERE (1=1) OR (1=0) OR (1=NULL) which becomes: WHERE TRUE OR FALSE OR NULL which is TRUE. (standard tri-value logic) -- Martijn van Oosterhout [EMAIL PROTECTED] http

Re: [GENERAL] different transaction handling between postgresql and oracle/mysql

2003-07-14 Thread Martijn van Oosterhout
-- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ the West won the world not by the superiority of its ideas or values or religion but rather by its superiority in applying organized violence. Westerners often forget this fact, non-Westerners never do. - Samuel P

Re: [GENERAL] a way to recover the DB of a data/ directory from a corrupted disk?

2003-07-16 Thread Martijn van Oosterhout
! DSL - Now only $29.95 per month! http://sbc.yahoo.com ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match -- Martijn van Oosterhout [EMAIL PROTECTED

Re: [GENERAL] Monthly table partitioning for fast purges?

2003-08-01 Thread Martijn van Oosterhout
tables for each year by hand and using a view to combine them. You can create RULEs to automatically move new data to various tables. As long as you're not doing UPDATEs you can avoid a lot of the complexity. Similar effects can be acheived using inheritance. Good luck! -- Martijn van Oosterhout

Re: [GENERAL] last inserted raw (identity)

2003-08-01 Thread Martijn van Oosterhout
to @@identity variable: insert into organization ('org name', ) insert into contact (@@identity, 'contact name' .) Here Identity is the organization's ID that is needed as a foreign key in contact table. See currval() and nextval(). -- Martijn van Oosterhout [EMAIL PROTECTED] http

Re: [GENERAL] last inserted raw (identity)

2003-08-01 Thread Martijn van Oosterhout
On Fri, Aug 01, 2003 at 10:43:03PM -0500, Ron Johnson wrote: On Fri, 2003-08-01 at 22:27, Martijn van Oosterhout wrote: On Fri, Aug 01, 2003 at 04:25:05PM -0700, b b wrote: Is there an environment variable that returns the primary key of the last inserted row. This is usefull

Re: [GENERAL] last inserted raw (identity)

2003-08-01 Thread Martijn van Oosterhout
to find out what the last record inserted was. It returns the last record *you* entered. If you want the last record entered by anyone (committed ofcourse), you'd use order by x desc limit 1. In general, currval() and nextval() do exactly what you need. -- Martijn van Oosterhout [EMAIL PROTECTED

Re: [GENERAL] last inserted raw (identity)

2003-08-02 Thread Martijn van Oosterhout
a timestamp if you want actual times to be involved. However, values will only show up once the transactions they were in commit, so finding the the last value inserted right now is not possible. In any case, I beleive currval() is the answer to the original question. -- Martijn van Oosterhout [EMAIL

[GENERAL] pg_dumpall doesn't support -s anymore?

2003-08-03 Thread Martijn van Oosterhout
for this? Thanks in advance, -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ All that is needed for the forces of evil to triumph is for enough good men to do nothing. - Edmond Burke The penalty good people pay for not being interested in politics is to be governed by people

Re: [GENERAL] Error message: Ralation X does not have

2003-08-06 Thread Martijn van Oosterhout
Never quote = case-insensetive -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ All that is needed for the forces of evil to triumph is for enough good men to do nothing. - Edmond Burke The penalty good people pay for not being interested in politics is to be governed

Re: [GENERAL] postmaster(s) have high load average

2003-08-10 Thread Martijn van Oosterhout
to [EMAIL PROTECTED] -- Martijn van Oosterhout [EMAIL PROTECTED] http://svana.org/kleptog/ All that is needed for the forces of evil to triumph is for enough good men to do nothing. - Edmond Burke The penalty good people pay for not being interested in politics is to be governed by people

Re: [GENERAL] Join faster than single table query

2003-08-12 Thread Martijn van Oosterhout
: Seq Scan on table_a (cost=0.00..373661.73 rows=12 width=227) EXPLAIN Let me guess, field_1 is not an int4 and since you didn't quote the constant 1, it can't use the index. The second query has matching types, so can you the index. Hope this helps, -- Martijn van Oosterhout [EMAIL PROTECTED

Re: [GENERAL] unique key issue

2006-09-19 Thread Martijn van Oosterhout
. If you mean NULL, then it's according to the SQL standard. NULL NULL so those rows are not equal. If you mean some real value, then yes, that's wierd. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according

Re: [GENERAL] vista

2006-09-19 Thread Martijn van Oosterhout
is so important, why aren't seeing a rash of installation reports about it working (or not). Why hasn't someone offered to setup a buildfarm machine? Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according

Re: [GENERAL] vista

2006-09-19 Thread Martijn van Oosterhout
? Now is the time to show it. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate. signature.asc Description: Digital signature

Re: [GENERAL] Initializing Datums for use with SPI_execute_plan

2006-09-19 Thread Martijn van Oosterhout
. Int64GetDatum(your_variable) which then has to be pfree'd, correct? Possibly, it probably depends on the architechture. The memory is being allocated in a per-call context IIRC so it'll be freed at the end of the function anyway. I wouldn't worry about it. Have a nice day, -- Martijn van Oosterhout

Re: [GENERAL] Initializing Datums for use with SPI_execute_plan

2006-09-20 Thread Martijn van Oosterhout
(). The memory will all be freed at the right time. The documentation on C functions and set-returning functions also has info about when the context is reset. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according

Re: [GENERAL] Initializing Datums for use with SPI_execute_plan

2006-09-20 Thread Martijn van Oosterhout
collector, everything in a context goes when the context is reset or deleted. If you still have a pointer there, it'll be invalid. If you enable debugging stuff it'll clear freed memory so the error becomes more obvious. Hope this helps, -- Martijn van Oosterhout kleptog@svana.org http

Re: [GENERAL] Problems converting between C string and Datum

2006-09-20 Thread Martijn van Oosterhout
, ...)? The output is quite verbose, e.g. Try elog(), but the details are also controlled by the client also, perhaps you can reduce the verbosity there also? Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according

Re: [GENERAL] Table Inheritance / VARCHAR search question

2006-09-21 Thread Martijn van Oosterhout
anyway, why split it out? Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate. signature.asc Description: Digital signature

Re: [GENERAL] execute/perform and FOUND

2006-09-21 Thread Martijn van Oosterhout
. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate. signature.asc Description: Digital signature

Re: [GENERAL] dumping 8M bit fields

2006-09-22 Thread Martijn van Oosterhout
, without trying to store it first. Hope this helps, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate. signature.asc Description: Digital signature

Re: [GENERAL] Restart after poweroutage

2006-09-24 Thread Martijn van Oosterhout
, ipcrm, or just delete the file postmaster.pid. This doesn't make sense to me. A reboot will absolutly kill any existing shared memory blocks, how can it possibly be complaining about it? What does ipcs show after the failure to start postgres? Have a nice day, -- Martijn van Oosterhout kleptog

Re: [GENERAL] Replication and PITR

2006-09-26 Thread Martijn van Oosterhout
be solvable as long as the transaction ID on the slave doesn't pass the VACUUM horizon of the server. But it would require careful studying of the WAL write order to be confident it would actually work. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From

Re: [GENERAL] Dead Lock problem with 8.1.3

2006-09-26 Thread Martijn van Oosterhout
8.1.3. The following SQL seems to produce a deadlock while doing an endless reading of a temp table: SELECT s.sid FROM stud s, stud_vera v WHERE s.sid = v.sid AND v.veraid = 34 AND s.sid NOT IN ( SELECT sid FROM stud_vera WHERE veraid = 2 ); Have a nice day, -- Martijn van Oosterhout

Re: [GENERAL] Insert/select union bug

2006-09-27 Thread Martijn van Oosterhout
*/ Perhaps you could indicate in the subselects the type? For example: insert into temp(a) select NULL::timestamptz union select NULL; I think as long as the first has the right type, you're set. BTW, UNION ALL is probably more efficient. Have a nice day, -- Martijn van Oosterhout kleptog

Re: [GENERAL] Insert/select union bug

2006-09-27 Thread Martijn van Oosterhout
to the table. Similarly, as of 8.2 it will be possible to do: INSERT INTO table (blah) VALUES (x,y,a),(f,d,g),(s,f,g), etc... Which will also avoid the issue. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according

Re: [GENERAL] Insert/select union bug

2006-09-27 Thread Martijn van Oosterhout
(fields) FROM STDIN; The only restriction is that you can't use expressions. Hope this helps, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate. signature.asc Description: Digital

Re: [GENERAL] File System Access:

2006-09-27 Thread Martijn van Oosterhout
, and you have a backup plan (if copy/create/update fails for some reason, leave the row in the table and try again later). Hope this helps, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate

Re: [GENERAL] continued segmentation fault

2006-09-28 Thread Martijn van Oosterhout
to any particular problem. Then again, when you go stomping around in memory where you don't belong, all bets are probably off. 99% of the time random segmentation faults are memory trouble. Have you tried memtest86 on the machine in question? Have a nice day, -- Martijn van Oosterhout kleptog

Re: [GENERAL] memory issues when running with mod_perl

2006-09-28 Thread Martijn van Oosterhout
at the right numbers? Disk cache should be counted as part of free memory, for example. Could you provide some actual output of your tests, so we can see exactly what you mean? Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his

Re: [GENERAL] text to point conversion not working. ( cannot cast type text to point )

2006-09-28 Thread Martijn van Oosterhout
is then parsed by the point input function. If you want you can encapsulate this into a function and create the cast yourself. Hope this helps, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate

Re: [GENERAL] Definition of return types for own functions?

2006-09-28 Thread Martijn van Oosterhout
of the return values? Yes, you can define a new type: CREATE TYPE name AS ( attribute_name data_type [, ... ] ) Also, in more recent versions (8.1 I think) you can use OUT parameters to create anonymous types. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http

Re: [GENERAL] contrib/levenshtein() has a bug?

2006-09-28 Thread Martijn van Oosterhout
The message is slightly wrong, the max length is actually one more. You can adjust the maximum length by changing the params in fuzzystrmatch.h and recompiling. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each

Re: [GENERAL] Normal vs Surrogate Primary Keys...

2006-10-02 Thread Martijn van Oosterhout
. In that situation your idea may work well, but that's just a surrogate key in disguise... Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate. signature.asc Description: Digital

Re: [GENERAL] using float4, I get incorrect value when select

2006-10-02 Thread Martijn van Oosterhout
to store, and with float4 that occurs after about 6 digits. If you want to remember exact numbers, use numeric. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate

Re: [GENERAL] Postgres backup

2006-10-02 Thread Martijn van Oosterhout
day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate. signature.asc Description: Digital signature

Re: [GENERAL] Hi, everyone. can i ask a question for th e server side encoding GB18030 and sort order?

2006-10-03 Thread Martijn van Oosterhout
you everyone. Find the locales you're using and make sure they match the encoding everywhere... Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate. signature.asc

Re: nbsp;[GENERAL]nbsp;Hi,nbsp;ever

2006-10-04 Thread Martijn van Oosterhout
not busy time for the live application. The locale is not a global setting. If you set the LANG or LC_ALL variable, it will change the locale of any program run with that environment variable. The default is the C locale. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http

Re: nbsp;nbsp;[GENERAL]nbsp;Hi,nbs

2006-10-04 Thread Martijn van Oosterhout
is diffrent from the LANG=zh_CN.GB18030. You need to do more to change the encoding of a database. The encoding is fixed at cluster-creation time, so you need to run initdb again to actually change the locale/encoding. Hope this helps, -- Martijn van Oosterhout kleptog@svana.org http

Re: [GENERAL] now() and time zone

2006-10-04 Thread Martijn van Oosterhout
something more reasonable? Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability to litigate. signature.asc Description: Digital signature

Re: [GENERAL] Europe/Moscow timezone

2006-10-06 Thread Martijn van Oosterhout
' AT TIME ZONE 'Europe/Moscow'; Including it in the string is only supported from 8.2 beta onward. So try that out and see how it goes. Have a nice day, -- Martijn van Oosterhout kleptog@svana.org http://svana.org/kleptog/ From each according to his ability. To each according to his ability

  1   2   3   4   5   6   7   8   9   10   >