Re: [GENERAL] PostgreSQL service account on Windows 7: Use a virtual account

2015-01-08 Thread Craig Ringer
On 09/17/2014 05:35 AM, Michael Paquier wrote: > On Thu, Sep 11, 2014 at 10:25 PM, Craig Ringer wrote: >> The PostgreSQL installer now uses the NETWORKSERVICE account on Windows >> by default (as of 9.2), instead of creating a "postgres" account with >> userna

Re: [GENERAL] bdr_init_copy fails when starting 2nd BDR node

2015-01-19 Thread Craig Ringer
On 4 January 2015 at 02:52, John Casey wrote: > I'm still experiencing similar problems. I'm not certain what parameter you > are referring to when you say 'ehost'. Otherwise, I did want to clarify a > couple of things. I have tried several combinations, each one fails in > various ways. So ...

Re: [GENERAL] BDR Error restarted

2015-01-21 Thread Craig Ringer
dbname=db3 user=postgres' > bdr.bdr01db4_init_replica = on > bdr.bbdr01db4_replica_local_dsn = 'dbname=db4 user=postgres' > bdr.bdr01db5_init_replica = on > bdr.bbdr01db5_replica_local_dsn = 'dbname=db5 user=postgres' > bdr.bdr01db6_init_replica = on > bd

Re: [GENERAL] BDR Error restarted

2015-01-22 Thread Craig Ringer
On 23 January 2015 at 08:22, agent wrote: > Hi Craig I have a similar issue with a rather small number of servers > involved. > OK. That looks odd. What revision are you running exactly? git rev-parse --short HEAD please. Also, correponding logs from the other two nodes please.

Re: [GENERAL] BDR Error restarted

2015-01-23 Thread Craig Ringer
replication from 4 at 0/0 > d= p=5210 a=LOCATION: bdr_apply_main, bdr.c:614 > d= p=5210 a=ERROR: XX000: data stream ended > d= p=5210 a=LOCATION: bdr_apply_work, bdr_apply.c:2240 > d= p=6700 a=LOG: 0: worker process: bdr > (610645886948339

Re: [GENERAL] trouble adding a node to BDR

2015-01-29 Thread Craig Ringer
ilt from packages, the package version is sufficient. BTW, the version after 0.8.0 will include a lot of sanity checks for connection configurations, making sure everything points at the right nodes before it does anything. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services

Re: [GENERAL] trouble adding a node to BDR

2015-01-30 Thread Craig Ringer
On 31 January 2015 at 06:42, Steve Boyle wrote: > Thanks for the hint. I found a config error, I had added the host= > param with the bdr.nodename_local_replica_dsn entry. Sorting out the > bdr.nodename_local_replica_dsn entry solved my issue. > > Glad to hear it. --

Re: [GENERAL] PostgreSQL run as process in windows

2013-01-07 Thread Craig Ringer
d=2577795 > > The issue is over a year old and there's still no Windows update that > fixes it, except for the hotfix in linked article. Apparently the fix > will be in SP2, but there's no ETA for that. I'd just put a Linux box in as a front-end, personally. --

Re: [GENERAL] PostgreSQL run as process in windows

2013-01-07 Thread Craig Ringer
> connection. if the clients continue to hold idle connections, the > pooler won't do anything useful for you. > > > :-( My application continue to hold idle connections. Idle CONNECTIONS are fine. What you need to avoid is open transactions being held open and

Re: [GENERAL] Database Design: Maintain Audit Trail of Changes

2013-01-07 Thread Craig Ringer
rmine the operation being done on the table. > > There is also pg_audit > : > https://github.com/jcasanov/pg_audit Additionally, this is an audit trigger I was using internally and generalized: http://wiki.postgresql.org/wiki/Audit_trigger_91plus -- Craig Ringer http://www.2ndQuadra

Re: [GENERAL] Unnecessary files that can be deleted/moved in cluster dir?

2013-01-07 Thread Craig Ringer
ite new WAL. If you don't have a space reserve in the file system, you'll need to move the data directory to somewhere with more room or (if possible) expand the file system. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- S

[GENERAL] Re: [HACKERS] Overly strict casting rules? (was: proposal: fix corner use case of variadic fuctions usage)

2013-01-20 Thread Craig Ringer
^ HINT: You will need to rewrite or cast the expression. JDBC users in particular will find the strict refusal to convert "text" to "xml" or "json" to be very frustrating. The JDBC driver has - AFAIK - no way to

[GENERAL] Care about Cygwin support? Please help test a patch.

2013-01-20 Thread Craig Ringer
resql.org/action/patch_view?id=1033 -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services

[GENERAL] SELinux users - Please consider testing SELinux/SEPostgreSQL patches

2013-01-20 Thread Craig Ringer
e interested in SELinux, please glance at the discussion linked to in those patch entries, then grab a patch and try it out as per the reviewer guidelines: http://wiki.postgresql.org/wiki/Reviewing_a_Patch -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Developmen

Re: [GENERAL] SELinux users - Please consider testing SELinux/SEPostgreSQL patches

2013-01-24 Thread Craig Ringer
On 01/21/2013 03:47 PM, Craig Ringer wrote: > Hi all > > Anybody here who has particular interest in or skill with SELinux is > invited (begged?) to help test KaiGai Kohei's patches for enhancing > PostgreSQL's SELinux/SEPostgreSQL support. These changes are propose

Re: [GENERAL] Postgresql error

2013-01-25 Thread Craig Ringer
You really need to show the full, exact text of the error from the database as well as the SQL run by both apps and relevant details of table structures. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/

[GENERAL] AT TIME ZONE and interval arguments

2013-01-31 Thread Craig Ringer
) regress=> SELECT TIME '04:00' AT TIME ZONE (TEXT '01:00'); timezone - 19:00:00-01 (1 row) and was wondering if anyone knows why the sense of the offset is reversed for typed intervals vs bare literal or text. Is this another one of the issues caused by t

Re: [GENERAL] EDB installer should check for valid %COMSPEC%

2013-03-07 Thread Craig Ringer
On 11/19/2012 05:14 PM, Dave Page wrote: >> check %COMSPEC% to see if it really >> > points to cmd.exe . > Interesting - thanks for the info Craig. Sandeep; can you please look > into adding such a check to the installer. We already test the > VBscript interpreter, so th

Re: [GENERAL] [HACKERS] Trust intermediate CA for client certificates

2013-03-17 Thread Craig Ringer
cing the problem now and will also test OpenSSL certificate chain lookup path configurations to see if there's a way to set things up correctly with the current backend code. I'll report back shortly. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Developme

Re: [GENERAL] [HACKERS] Trust intermediate CA for client certificates

2013-03-17 Thread Craig Ringer
SA-AES256-SHA, bits: 256) (connects OK; expected since we aren't requiring client certs yet and we aren't validating the server cert). $ psql "postgresql://localhost/?sslmode=verify-ca" psql: root certificate file "/home/craig/.postgresql/root.crt" does not exist Eithe

Re: [GENERAL] [HACKERS] Trust intermediate CA for client certificates

2013-03-18 Thread Craig Ringer
On 03/18/2013 01:07 PM, Craig Ringer wrote: > System wide installation of the root may allow OpenSSL to discover it > and use it for verification back to the root without having to trust it > to sign clients. I'll do some more checking to see if this is possible > with how Pg use

Re: [GENERAL] [HACKERS] Trust intermediate CA for client certificates

2013-03-18 Thread Craig Ringer
On 03/18/2013 02:27 PM, Ian Pilcher wrote: > On 03/18/2013 12:07 AM, Craig Ringer wrote: >> So this problem is verified. > * Trusted certificates - What currently goes in the (unfortunately > named) root.crt file. Well, a little unfortunate. It contains roots of *client authen

Re: [GENERAL] [HACKERS] Trust intermediate CA for client certificates

2013-03-18 Thread Craig Ringer
. I guess that suggests we should be calling this something like 'ssl_authorized_client_roots'. - -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.13 (GNU/Linux

Re: [GENERAL] [HACKERS] Trust intermediate CA for client certificates

2013-03-18 Thread Craig Ringer
enough to want cert auth I'd want to be able to specify something like: SubjectDNMatches: C=*, ST=*, L=*, O=MyCompany, CN=* ... in which case there'd no longer be a need to restrict trust to intermediate CAs, you'd just trust the root and restrict the authorized SubjectDNs. If

Re: [GENERAL] [HACKERS] Trust intermediate CA for client certificates

2013-03-19 Thread Craig Ringer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/19/2013 08:39 PM, Stephen Frost wrote: > Craig, > > * Craig Ringer (cr...@2ndquadrant.com) wrote: >> Yep, in most applications I've seen you usually store a list of >> authorized SubjectDNs or you just use your own sel

Re: [GENERAL] [HACKERS] Trust intermediate CA for client certificates

2013-03-20 Thread Craig Ringer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/19/2013 09:46 PM, Stephen Frost wrote: > * Craig Ringer (cr...@2ndquadrant.com) wrote: >> As far as I'm concerned that's the immediate problem fixed. It may be >> worth adding a warning on startup if we find non-self-si

Re: [GENERAL] Sample database with difficult SQL questions

2013-06-09 Thread Craig Ringer
ection. I'm not aware of anything along those lines that already exists for PostgreSQL - a wholly artificial demo data DB for SQL problems or one assembled from user examples. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training &am

Re: [GENERAL] Exit code -1073741819

2013-08-04 Thread Craig Ringer
ittle point investigating a bug until it can be reproduced in a current version. Can you `pg_dump` your database? If so, follow the upgrade instructions in the documentation to get onto a current, supported version. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Deve

Re: [GENERAL] Why are stored procedures looked on so negatively?

2013-08-04 Thread Craig Ringer
way the question "should this be done in apps or in a stored proc" must be asked for each individual procedure. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] MinGW compiled client library

2013-08-13 Thread Craig Ringer
bility bugs. In this case I'm wondering if we've got an issue with selection of socket flags. Michael, can you try some older versions and see if you can find when this problem first appeared? Does it only affect mingw-64, or is the 32-bit version affected too? -- Craig Ringer

Re: [GENERAL] What type of index do I need for this JOIN?

2013-08-13 Thread Craig Ringer
index with a special operator class to support indexing of pattern-matching queries; see Section 11.9 below." -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-general mailing list (pgsql-general@pos

Re: [GENERAL] BDR replication and table triggers

2017-05-02 Thread Craig Ringer
ream, but it might be a bit fiddly and complex for your needs. Ideally we'd be able to fire triggers in BDR, but that's not implemented or on the current roadmap and there's no funded work on it at this point. There's some work to support it in pglogical though. -- Craig Ring

Re: [GENERAL] How does BDR replicate changes among nodes in a BDR group

2017-06-07 Thread Craig Ringer
or not > statically determined? Each node replicates to all other nodes in an undefined order determined by network timing etc. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-general mailing list (pg

Re: [GENERAL] How does BDR replicate changes among nodes in a BDR group

2017-06-08 Thread Craig Ringer
back up. Monitoring is important. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] BDR node removal and rejoin

2017-07-12 Thread Craig Ringer
> I was under the impression that there is no need to perform manual cleanup > before a removed node (with database dropped and recreated) rejoining a BDR > group. > BDR1 requires that you manually remove the bdr.bdr_nodes entry if you intend to re-use the same node name. -- Craig Ringe

Re: [GENERAL] BDR node removal and rejoin

2017-07-12 Thread Craig Ringer
-07-12 10:37:46 PDT [24944:bdr > (6408408103171110238,1,24713,):receive:::1(33884)]LOCATION: > exec_replication_command, walsender.c:1309 > > 2017-07-12 10:37:46 PDT [24944:bdr > (6408408103171110238,1,24713,):receive:::1(33884)]DEBUG: > 08003: unexpected EOF on client connection &g

Re: [GENERAL] BDR node removal and rejoin

2017-07-13 Thread Craig Ringer
the value >max_wal_senders as well), with respect to, say, the max number of nodes >intended to support? > > I think that's covered in the docs, but it's safe to err fairly high. The cost of extra slots is minimal. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services

Re: [GENERAL] BDR, wal segment has been removed, is it possible move forward?

2017-09-05 Thread Craig Ringer
ata. Don't go in and randomly delete things in the postgres data directory, or things will break. The BDR manual warns of the importance of disk space monitoring... -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services

Re: [GENERAL] BDR, wal segment has been removed, is it possible move forward?

2017-09-06 Thread Craig Ringer
On 6 September 2017 at 08:47, milist ujang wrote: > Hi Craig > > On Wed, Sep 6, 2017 at 7:21 AM, Craig Ringer > wrote: >> >> >> BDR can, see bdr.skip_changes_upto . >> >> Unluckily my bdr is 0.9.3 > > >> But PostgreSQL's logical decod

Re: [GENERAL] BDR, wal segment has been removed, is it possible move forward?

2017-09-07 Thread Craig Ringer
On 7 September 2017 at 21:16, milist ujang wrote: > Hi Craig, > > On Wed, Sep 6, 2017 at 4:07 PM, Craig Ringer > wrote: > >> >> You could drop and re-create the replication slot, I guess. But your >> nodes would be hopelessly out of sync and need manual resync (

Re: [GENERAL] BDR, limit number of groups in a cluster

2017-09-10 Thread Craig Ringer
here are hundreds wal sender), what is > the limit number of groups? > It's not a use case I've paid much attention to. I expect it'll be limited by performance and memory, rather than have any firm limit. Maybe you should look into pglogical. This seems li

Re: [GENERAL] BDR, near xid wraparound, a lot of files in pg_subtrans directory

2017-09-14 Thread Craig Ringer
Do you have any idle/old replication slots, perhaps from failed node joins or abandoned nodes not properly parted? SELECT * FROM pg_replication_slots; Also check SELECT oid,* FROM pg_database; -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services

Re: [GENERAL] BDR, near xid wraparound, a lot of files in pg_subtrans directory

2017-09-14 Thread Craig Ringer
On 15 September 2017 at 11:46, milist ujang wrote: > Hi Craig, > > Thanks again for pointing to inactive replication slot. > After inactive replication slot been dropped, the relfrozenxid now moving. > > I wonder if replication identifier will have some issue if left >

Re: [GENERAL] Logical Replication - test_decoding - unchanged-toast-datum

2017-09-27 Thread Craig Ringer
x27;t suitable as the base for a replication solution. It has "test" in its name for a reason. Your replication model, whatever it is, is broken, since it's not handling special cases like unchanged TOASTed values in UPDATEs. This is a bug in your replication tool. -- Craig Ringer

Re: [GENERAL] BDR, wal sender, high system cpu, mutex_lock_common

2017-10-03 Thread Craig Ringer
here are around 250+ wal > sender processes. > Not a great use case for BDR. Consider pglogical. > > finally get which processes (wal senders) that are using mutexes: > > perf top -e task-clock -p 55382 > > Can you get stacks please? Use -g -- Craig Ringer

Re: [GENERAL] BDR, wal sender, high system cpu, mutex_lock_common

2017-10-11 Thread Craig Ringer
On 4 October 2017 at 00:21, milist ujang wrote: > On Tue, Oct 3, 2017 at 8:49 PM, Craig Ringer wrote: >> >> >> Can you get stacks please? >> >> Use -g > > > # Events: 2K cpu-clock > # > # Overhead Command

Re: [GENERAL] BDR, wal sender, high system cpu, mutex_lock_common

2017-10-11 Thread Craig Ringer
On 12 October 2017 at 11:03, Andres Freund wrote: > On 2017-10-12 10:25:43 +0800, Craig Ringer wrote: >> On 4 October 2017 at 00:21, milist ujang wrote: >> > On Tue, Oct 3, 2017 at 8:49 PM, Craig Ringer wrote: >> >> >> >> >>

Re: [GENERAL] BDR question on dboid conflicts

2017-10-26 Thread Craig Ringer
the rest of the (sysid,timeline,dboid) tuple. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] [HACKERS] SSL and Encryption

2017-11-02 Thread Craig Ringer
r pgsql-hackers. For password crypto please go read the SCRAM thread and the PostgreSQL 10 release notes. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-general mailing list (pgsql-general@postgresq

Re: [GENERAL] PostreSQL Single File ( Like M$ Access)

2008-03-10 Thread Craig Ringer
> > No. > Unless you create a file and mount a loopback filesystem on it, but I'm > sure that's not what you're looking for. Consequently you might want to look into embeddable databases like SQLite, Firebird, Berkeley DB (NOT SQL), etc. -- Craig Ringer -- Se

Re: [GENERAL] Service account not showing

2008-03-10 Thread Craig Ringer
s on limited user accounts on a domain, or when using vista properly (with UAC enabled). -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Fwd: pgsql configuration

2008-03-10 Thread Craig Ringer
; will tell you this. - Whether or not you know where your data directory is - How you normally start and stop postgresql -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Fwd: pgsql configuration

2008-03-10 Thread Craig Ringer
Pau Marc Munoz Torres wrote: Thanks Craig just one more question, most of the variables at /home/postgresql/data/postgresql.conf file are commented (the directory /home/postgresql/data is where i found PG_VERSION file), should i it be commented in my postgresql.conf file? Yes, that's n

Re: [GENERAL] ISO something like "#if 0 ... #endif" for SQL code

2008-03-10 Thread Craig Ringer
tions.sql DROP TRIGGER DROP TRIGGER CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TRIGGER CREATE TRIGGER ... and any changes are applied. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Problem with starting PostgreSQL server 7.4.19

2008-03-11 Thread Craig Ringer
ng, strong fsync requirements, etc) though of course it's still not a good idea. I don't know about 7.x . -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Problem with starting PostgreSQL server 7.4.19

2008-03-11 Thread Craig Ringer
happened, though, so maybe you should keep the damaged database around for a while and see if anybody here has ideas about what could've happened. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] porting vb6 code to pgplsql, referencing fields

2008-03-12 Thread Craig Ringer
josep porres wrote: but the most important is how can I reference the fields inside de loop By "the fields" I assume you mean the fields with names that end in a number from 1 to 5, and you want to access those fields in a loop as if you were indexing an array? I think you might want to ex

Re: [GENERAL] Functional Index Question

2008-03-13 Thread Craig Ringer
#x27;d actually care to use. Then again, that kind of thinking is part of why I'm not much of a fan of SQL-abstracted web app frameworks. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] porting vb6 code to pgplsql, referencing fields

2008-03-13 Thread Craig Ringer
testfn(); I think you're trying to swim upstream here, personally, and do something very much the hard way, but it sounds like you're stuck with existing apps with inflexible designs that you need to accommodate. Even then, maybe you can use some stored procedures and updateable view

Re: [GENERAL] Is there a way to elegantly do a : CREATE TEMP TABLE X AS SELECT .... ON COMMIT DROP

2008-03-13 Thread Craig Ringer
can manually drop it earlier. Different connections see different temp tables so there's no naming conflict. I'd personally like an on commit drop option for temp tables, but I can imagine a variety of reasons why it might not be done that way. -- Craig Ringer -- Sent via pgsql-gener

Re: [GENERAL] LOCK TABLE HELP

2008-03-14 Thread Craig Ringer
have to do with this or with your threading. What matters is the SQL you're sending to the server. Have you tried logging the SQL statements you're sending to the server and making sure they work as expected in psql? -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-g

Re: [GENERAL] postgre vs MySQL

2008-03-14 Thread Craig Ringer
EXECUTE ... INTO has been implemented for 8.3 . It's turning into a seriously impressive database. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Trouble with Savepoints in postgres

2008-03-15 Thread Craig Ringer
that might result in an exception and skip those records, thus avoiding the EXCEPTION block. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Redundant file server for postgres

2008-03-16 Thread Craig Ringer
e read-mostly, or will it be written to very heavily? Vaguely how large is your expected dataset? Is all the data likely to be accessed with equal frequency or are most queries likely to concentrate on a small subset of the data? And so on... -- Craig Ringer -- Sent via pgsql-general mailing list (

Re: [GENERAL] Table size

2008-03-21 Thread Craig Ringer
#x27;s not what you're after, you might need to be more specific. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] deadlock error messages

2008-03-21 Thread Craig Ringer
oblem statement. Your later log analysis could then match up the statements from the separate log records. Including the transaction IDs of both in both log lines would be nice too, as pids get reused. Sound sane? -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

Re: [GENERAL] --enable-thread-safety bug

2008-03-22 Thread Craig Ringer
then running your app, linked to that ecpg, under Valgrind. If you are able to produce more specific information about how the leak occurs in the context of your application people here may be more able to help you. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresq

Re: [GENERAL] Install Postgresql on Win2000 with Admin Rights

2008-03-25 Thread Craig Ringer
See: http://msdn2.microsoft.com/en-us/library/ms811694.aspx I'm not speaking from PostgreSQL specific experience here, so maybe there's some odd reason why it might be required for the pgsql server. In general, though, it's a terrible idea to go messing with the windows directory for

Re: [GENERAL] Install Postgresql on Win2000 with Admin Rights

2008-03-25 Thread Craig Ringer
ure that's safe. In other words: Try dropping a copy of MSVCR80.DLL into the bin directory of the non-MSI postgresql zip file and see how you go. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Install Postgresql on Win2000 with Admin Rights

2008-03-25 Thread Craig Ringer
Stefan Sturm wrote: Hello Craig and Magnus, thanks for your Help. I downloaded MSVCR80.DLL, but still the same problems: When I simply start init_db from within the bin folder I get the Message, that he can't find libintl3.dll. The errormessage shows the PATH, and this path contain

Re: [GENERAL] return value from SQL statement

2008-03-25 Thread Craig Ringer
on with psycopg? SQL code read by the psql command? Also, by "failure", do you mean "encountered an error that terminated the transaction" or "inserted zero rows" ? -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.or

Re: [GENERAL] select any table

2008-03-25 Thread Craig Ringer
ormative. http://www.google.com/search?q=postgresql+grant+all+tables http://www.google.com/search?q=postgresql+grant+all+tables+site%3Aarchives.postgresql.org -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org

Re: [GENERAL] return value from SQL statement

2008-03-25 Thread Craig Ringer
nt exclusions, etc, then using your PHP database interface's diagnosics ( cursor.get_row_count() or whatever it is in PHP ) to see whether the query did anything? -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] pgplsql, how to save row variable to a table row

2008-03-26 Thread Craig Ringer
ALIAS FOR $1; arg2 ALIAS FOR $2; BEGIN demo_tab_row.id := nextval('demo_tab_id_seq'); demo_tab_row.fd1 := arg1; demo_tab_row.fd2 := arg2; INSERT INTO demo_tab SELECT demo_tab_row.*; END; $$ LANGUAGE 'plpgsql'; -- Craig Ringer -- Sent via pgsql-general mailing list (

Re: [GENERAL] returned value from SQL statement

2008-03-27 Thread Craig Ringer
interfaces? Java / JDBC ? Java with an ORM layer ? PL/PgSQL stored proceures executed by `psql' ? ... -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] returned value from SQL statement

2008-03-27 Thread Craig Ringer
changed since last time? What else do you need to know? -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] dunction issue

2008-03-28 Thread Craig Ringer
Do you mean transactions? Transactions really aren't a security feature/issue. They're a tool useful for preserving data integrity and consistency by bundling up related operations into a single change that the database guarantees will all be applied at once, or not applied at all.

Re: [GENERAL] Schema design question

2008-03-28 Thread Craig Ringer
at least prove to be the most efficient. However, it won't be fun to query. Storing them all as text won't be much fun to query, which I'd consider another argument for the many-types tuple. '2' > '11' = 't', '002' <> '2', et

Re: [GENERAL] dunction issue

2008-03-28 Thread Craig Ringer
dodged a bullet there. As far as I'm concerned any DB interface that's ignoring errors behind your back needs to die. Especially in an exception-capable language like Python, where throwing and letting the upper layers handle it is the obviously sane thing to do. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] dunction issue

2008-03-29 Thread Craig Ringer
project, though I suspect it might involve a bit too much of Pg's internals. Am I the only one who'd want something like that, or does it sound like something that might be a worthwhile wishlist/distant-todo item? -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-gener

Re: [GENERAL] Survey: renaming/removing script binaries (createdb, createuser...)

2008-03-30 Thread Craig Ringer
e. I never understood the rationale behind that naming myself; names like pg_ctl, apachectl, etc seem to suggest their purpose more directly. -- Craig Ringe -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Re: [GENERAL] postgreSQL multithreading

2008-03-30 Thread Craig Ringer
wn, potentially different, view of the database state. A possible use for read only transactions being able to share a snapshot came up in discussion a few weeks ago. I guess this is another one. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

Re: [GENERAL] returning array from function or "structured error"

2008-03-30 Thread Craig Ringer
est_id INTEGER, test_outcome TEXT ); or whatever's appropriate for your use, then declare the function as `RETURNS SETOF test_result'. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Removing redundant itemsets

2008-03-31 Thread Craig Ringer
tly harder for others to understand and work with your schema. It might be worth renaming the entity to avoid the conflict with the meaning of "transaction" as "atomic unit of work" as controlled by BEGIN/COMMIT/ROLLBACK . -- Craig Ringer -- Sent via pgsql-general mailing list (pgsq

Re: [GENERAL] Primary Key with serial the solution?

2008-04-01 Thread Craig Ringer
like, say, "gap-less" generated values? If that's the problem please search the archives as it's already been discussed to death even in the short time I've been a list member. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Primary Key with auto increment field

2008-04-01 Thread Craig Ringer
IDING this approach. It is complex, and the solutions suggested to you require you to understand some PL/PgSQL and a bit about how locking is used. Are you SURE you can't just use a normal sequence instead? -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgres

Re: [GENERAL] (FAQ?) JOIN condition - 'WHERE NULL = NULL'

2008-04-02 Thread Craig Ringer
sion of IS DISTINCT FROM, which is why it comes straight to mind. If that's not what you meant (by NULL = NULL) then might you be looking for an OUTER JOIN ? -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www

Re: [GENERAL] Problem with planner choosing nested loop

2008-04-03 Thread Craig Ringer
to live with the slowness of this query. Pick one ;) He's already noted that it's preferable to avoid adding indexes due to insert/update performance issues. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] deadlock

2008-04-03 Thread Craig Ringer
er means (say, knowledge about locking on other tables/records) that a deadlock won't arise. > Mind you, there may be many requests per second, and > some of them can and will happen at the same wall clock time due to 2 > cpus at work. Can locking break under these circumstances? I&#

Re: [GENERAL] choosing the right locking mode

2008-04-03 Thread Craig Ringer
Update completes Update completes, overwriting changes from the other update. You'd have to be prepared to retry failed updates, but I doubt that's a big deal in this situation. See: http://www.postgresql.org/docs/8.2/interactive/transaction-iso.html -- Craig Ringer --

Re: [GENERAL] choosing the right locking mode

2008-04-03 Thread Craig Ringer
Scott Marlowe wrote: > On Thu, Apr 3, 2008 at 11:45 AM, Craig Ringer > <[EMAIL PROTECTED]> wrote: >> rihad wrote: >> > Given this type query: >> > >> > UPDATE bw_pool >> > SET user_id=? >> > WHERE bw_

Re: [GENERAL] choosing the right locking mode

2008-04-03 Thread Craig Ringer
t free lock is practically a recipe for serialization failures, making it even less attractive. With only two concurrent connections it'd work OK if one used min() and the other used max() ... but add another couple and you're in trouble. The serial based approach sounds a fair bit better.

Re: [GENERAL] choosing the right locking mode

2008-04-03 Thread Craig Ringer
#x27;d be tempted to do that anyway just to simplify the client's job, guarantee query plan caching, etc. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Conversion to 8.3

2008-04-04 Thread Craig Ringer
t_timestamp THEN (Note that current_timestamp and current_date are constant within a transaction, so they might not be suitable if you have really long running transactions). -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http:/

Re: [GENERAL] dump data into complex type table

2008-04-04 Thread Craig Ringer
still have problems, use pg_dump to dump a table containing your complex values and examine the dump file. That'll show you how it needs to be done. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] drop database regardless of connections

2008-04-06 Thread Craig Ringer
wconn to 'f' for the DB in question. That way, while you're killing off backends you won't have more joining. I'm curious about why you need to drop and create so many databases that this is an issue, though. -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] slow pgsql tables - need to vacuum?

2008-04-06 Thread Craig Ringer
iscussion here that made it sound like a REINDEX might also be required on tables with really high data churn (ie when VACUUM / VACUUM FULL are run a lot) - if you're not dropping and re-creating the indexes for better bulk load performance anyway, of course. Am I just confused, or can this s

Re: [GENERAL] pl/pgsql RECORD data type, how to access to the values

2008-04-06 Thread Craig Ringer
INER (after carefully thinking about possible risks and issues). Why the separate read only table, anyway? A materialized view / summary table? Something to do with user access control ? -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Silent install 8.3 diiffers from 8.2

2008-04-06 Thread Craig Ringer
re the full details from the system event log? -- Craig Ringer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] select distinct and index usage

2008-04-06 Thread Craig Ringer
collected on the datestamp column (or all columns in the table), re-running ANALYZE on the table, and seeing what happens. Also, is there any chance that that's a lot more variation in datestamp values in your problem table than the one where the index is used? -- Craig Ringer -- Sent via

<    1   2   3   4   5   6   7   8   9   10   >