Re: [GENERAL] Merge join vs merge semi join against primary key

2015-10-13 Thread Sean Rhea
Buckets: 1024 Batches: 1 Memory Usage: 12kB -> Seq Scan on customers o (cost=0.00..20285.94 rows=184 width=8) (actual time=16.901..126.606 rows=430 loops=1) Filter: (group_id = 45) Rows Removed by Filter: 476221 Total runtime: 142.089 ms (9 rows)

Re: [GENERAL] Merge join vs merge semi join against primary key

2015-10-13 Thread Sean Rhea
duction=> select count(*) from customers; count 476645 (1 row) Is it possible for explain analyze to somehow produce bad stats? I can't figure out where that 212699113 number is coming from at all. Sean On Mon, Oct 12, 2015 at 5:43 PM, David Rowley wrote: > On 10 Octobe

Re: [GENERAL] Merge join vs merge semi join against primary key

2015-10-09 Thread Sean Rhea
s (7 rows) Sean On Fri, Oct 9, 2015 at 1:09 PM, Igor Neyman wrote: > Hello, > > > > I'm seeing some inexplicable (to me) behavior in PostgreSQL 9.2. I checked > > the archives, but I still can't explain it. Apologies if I missed > something. > >

[GENERAL] Merge join vs merge semi join against primary key

2015-10-09 Thread Sean Rhea
bout the same performance in either case, but one query takes only a few hundred milliseconds while the other takes hundreds of seconds. Ouch! Can anyone help me explain this behavior? Some details are below. Let me know if it would be helpful to gather others. Sean pr

[GENERAL] Fast Shutdown (SIGINT) results in a CHECKPOINT...

2013-03-20 Thread Sean Chittenden
run in to this before and in some scripts I run a CHECKPOINT before sending a SIGINT, which reduces the size of the CHECKPOINT, but doesn't necessarily eliminate it all of the time. In fact, I'm not sure it happens 100% of the time either, but today I was bit by this shutdown/startup dela

Re: [GENERAL] 'full_page_writes=off' , VACUUM and crashing streaming slaves...

2012-10-10 Thread Sean Chittenden
fully (supposedly). START WAL LOCATION: 9F/3620 (file 0001009F0036) CHECKPOINT LOCATION: 9F/37E9D6D8 BACKUP METHOD: pg_start_backup BACKUP FROM: master START TIME: 2012-10-06 17:48:10 UTC LABEL: repmgr_standby_clone_1349545601 -- Sean Chittenden s...@chittenden.org -- 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] 'full_page_writes=off' , VACUUM and crashing streaming slaves...

2012-10-07 Thread Sean Chittenden
ites safe, but that slaves are still making assumptions about full page WAL entries being the MTU during some corner cases. My observations lead me to believe that replication works fine with full_page_writes disabled until the master cleans up a zero-filled or damaged page. For the arch

Re: [GENERAL] 'full_page_writes=off' , VACUUM and crashing streaming slaves...

2012-10-06 Thread Sean Chittenden
arios that come from a system running out of FDs (though seek(2)'ing consuming an FD seems odd), it's more that it's still possible for a master DB's VACUUM to clean up a bogus or partial page write, and have the slave crash when the WAL entry is shipped over. Are there any

[GENERAL] 'full_page_writes=off' , VACUUM and crashing streaming slaves...

2012-10-06 Thread Sean Chittenden
alid pages Oct 6 17:26:44 db02 postgres[19614]: [14-2] @ 19614 0: CONTEXT: xlog redo vacuum: rel 1663/16387/20196; blk 2944, lastBlockVacuumed 2403 Oct 6 17:26:44 db02 postgres[19608]: [12-1] @ 19608 0: LOG: startup process (PID 19614) was terminated by signal 6: Abort trap Oct 6 17:26:4

Re: [BULK] Re: [GENERAL] Streaming Replication woes

2011-11-16 Thread Sean Patronis
Konstantin, Just back from some time off and read this reply. This was exactly the issue. The superuser "postgres" did not have this role since this was a dump/restore/upgrade from postgres 8.4. I just created a new Role and user, and it all worked! Thanks! --Sean On 11/06/

Re: [BULK] Re: [GENERAL] Streaming Replication woes

2011-11-04 Thread Sean Patronis
On 11/04/2011 11:31 AM, Simon Riggs wrote: On Fri, Nov 4, 2011 at 2:56 PM, Raghavendra wrote: # The standby server must have superuser access privileges. host replication postgres 192.168.0.20/22 trust I strongly recommend you don't use those settings, since they result in no security at

Re: [GENERAL] Streaming Replication woes

2011-11-04 Thread Sean Patronis
On 11/04/2011 11:25 AM, Thom Brown wrote: On 4 November 2011 17:19, Sean Patronis wrote: On 11/04/2011 10:59 AM, Thom Brown wrote: On 4 November 2011 16:50, Sean Patroniswrote: I am running Postgres 9.1 I have followed the howto here: http://wiki.postgresql.org/wiki

Re: [GENERAL] Streaming Replication woes

2011-11-04 Thread Sean Patronis
On 11/04/2011 10:59 AM, Thom Brown wrote: On 4 November 2011 16:50, Sean Patronis wrote: I am running Postgres 9.1 I have followed the howto here: http://wiki.postgresql.org/wiki/Streaming_Replication I am attempting to replicate an existing database. On the Master, I get the following

[GENERAL] Streaming Replication woes

2011-11-04 Thread Sean Patronis
I am running Postgres 9.1 I have followed the howto here: http://wiki.postgresql.org/wiki/Streaming_Replication I am attempting to replicate an existing database. On the Master, I get the following error in the postgres log file: FATAL: must be replication role to start walsender On the sla

Re: [GENERAL] Postgres 9.01, Amazon EC2/EBS, XFS, JDBC and lost connections

2011-10-11 Thread Sean Laurent
On Tue, Oct 11, 2011 at 8:50 PM, Scott Marlowe wrote: > On Tue, Oct 11, 2011 at 5:00 PM, Sean Laurent wrote: >> As much as I would like Postgres to withstand a 2 second outage, I >> don't honestly care. I'd just like to figure out whether I'm looking >> at so

Re: [GENERAL] Postgres 9.01, Amazon EC2/EBS, XFS, JDBC and lost connections

2011-10-11 Thread Sean Laurent
tem - it's under load, but not a tremendously high load. During our busier times we average something in the neighborhood of 300-400 transactions per second, which just doesn't seem like that much. As much as I would like Postgres to withstand a 2 second outage, I don't honestly ca

Re: [GENERAL] Postgres 9.01, Amazon EC2/EBS, XFS, JDBC and lost connections

2011-10-11 Thread Sean Laurent
On Fri, Oct 7, 2011 at 12:36 AM, Tom Lane wrote: > > Sean Laurent writes: > > We've been running into a particularly strange problem that I'm trying to > > better understand. The super short version is that our application servers > > lose their connection t

Re: [GENERAL] Postgres 9.01, Amazon EC2/EBS, XFS, JDBC and lost connections

2011-10-11 Thread Sean Laurent
On Mon, Oct 10, 2011 at 8:09 AM, Craig Ringer wrote: > On 10/07/2011 01:21 AM, Sean Laurent wrote: >> Within a few seconds of the backup, our application servers start >> throwing exceptions that indicate the database connection was closed. >> Meanwhile, Postgres still show

[GENERAL] Postgres 9.01, Amazon EC2/EBS, XFS, JDBC and lost connections

2011-10-06 Thread Sean Laurent
time. The backups were running every hour, but we have only seen the app servers crash 5-10 times over the course of a month. Has anyone encountered anything like this? Do any of these steps have ramifications that I'm not considering? Especially something that might explain the app server failure? Thanks. Sean Laurent Director of Operations StudyBlue, Inc.

Re: [GENERAL] installation problems on OSX Lion

2011-07-23 Thread Sean Moss-Pultz
for the reply. I turned out to be a simple path issue. The installer didn't put the correct path in. Now on to other problems with psycopg :/ Sean -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] installation problems on OSX Lion

2011-07-23 Thread Sean Moss-Pultz
found.  Did find: /usr/lib/libpq.5.dylib: no matching architecture in universal wrapper /usr/lib/libpq.5.dylib: no matching architecture in universal wrapper Trace/BPT trap: 5 Does anyone know how to fix this? Thanks in advance for the help! Sean -- Sent via pgsql-general mailing list

Re: [GENERAL] [ANNOUNCE] PostgreSQL Core Team

2011-04-27 Thread Sean Doherty
Magnus, congratulations! In my short two years around PostgreSQL your name has been synonymous with super intelligence and a great attitude. All the best Sean On Apr 27, 2011, at 1:48 PM, Dave Page wrote: > I'm pleased to announce that effective immediately, Magnus Hagander &

Re: [GENERAL] 9.0 streaming replication problem

2011-03-09 Thread Sean Hsien
On 10 March 2011 14:21, Sean Hsien wrote: > Hi, > > I've setup 2 nodes for streaming replication and it was working > perfectly. I the tested multiple failovers, switching master/slave, > and now the streaming replication doesn't work anymore. > > I had a look at

[GENERAL] 9.0 streaming replication problem

2011-03-09 Thread Sean Hsien
: user=postgres ...". From ps, the sender and receiver processes have been started. However there is something strange with the sender process, ps says: postgres: wal sender process postgres xxx.xxx.xxx.xxx (48159) startup And the streaming never starts. What are the possible problems? Than

Re: [GENERAL] Hot Standby - ERROR: canceling statement due to conflict with recovery

2011-02-27 Thread Sean Laurent
On Sun, Feb 27, 2011 at 1:04 PM, Jens Wilke wrote: > On Sonntag, 27. Februar 2011, Sean Laurent wrote: > > > Unfortunately, most queries against the hot standby fail. Worse > > yet, pg_dump fails: > ... > > I'm not entirely certain I understand why I'm seeing

[GENERAL] Hot Standby - ERROR: canceling statement due to conflict with recovery

2011-02-27 Thread Sean Laurent
ain I understand why I'm seeing this. Nor do I understand how to fix or work around this. Any advice or suggestions would be greatly appreciated. -Sean

Re: [GENERAL] NASA needs Postgres - Nagios help

2010-07-19 Thread Sean E. Connolly
c is loaded with #ifdef USE_PGSQL connection functions. Some of the PGSQL specific functions in ndo2db.c are commented out, but are at least there. Sean

[GENERAL] NASA needs Postgres - Nagios help

2010-07-16 Thread Sean E. Connolly
in >postgres, which is something else. Daniel, Buried in the ./ndoutils-1.4b9/db/README is wording that suggests it may just be a matter of modifying the .sql file. What happens if you just try it? Best, Sean

[GENERAL] About the limit of storage

2010-05-02 Thread Sean
PostgreSQL system imposes, but it does exceed my server's storage. Can anyone give a hint? Thanks,Sean _ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.

Re: [NOVICE] [GENERAL] Connect to postgresql database using Perl

2010-03-31 Thread Sean Davis
. I think it is obvious because in below code there is no information > where to connect to. Could you please help me out. Hi, Dipti. Have a look at the DBI documentation. As you suspect, you will need to specify the host. Sean > use DBI; > $DB_name    = 'mydb'; > $

[GENERAL] serial columns with replication/cluster

2010-02-04 Thread Sean Hsien
gards, Sean -- 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] query that worked in 8.1 not working in 8.4

2009-08-27 Thread Sean Foreman
Thanks Tom. That is what I suspected. I will install the branch tip on Monday and see if the problem goes away. Sean Tom Lane wrote: Sean Foreman writes: We recently upgraded postgres from 8.1 to 8.4. One of our queries stopped working and after some digging I've narrowed the pr

Re: [GENERAL] query that worked in 8.1 not working in 8.4

2009-08-27 Thread Sean Foreman
a bug. On Thu, Aug 27, 2009 at 2:13 PM, Sean Foreman wrote: We recently upgraded postgres from 8.1 to 8.4. One of our queries stopped working and after some digging I've narrowed the problem down to this: table structure of interest: merchant_set merchant_set_id merchant m

Re: [GENERAL] query that worked in 8.1 not working in 8.4

2009-08-27 Thread Sean Foreman
There is no error message. Posgres "likes" the query. In this case, the query returns a count of 1 instead of 3562. Scott Marlowe wrote: On Thu, Aug 27, 2009 at 2:13 PM, Sean Foreman wrote: We recently upgraded postgres from 8.1 to 8.4. So, is there an error message you ge

[GENERAL] query that worked in 8.1 not working in 8.4

2009-08-27 Thread Sean Foreman
We recently upgraded postgres from 8.1 to 8.4. One of our queries stopped working and after some digging I've narrowed the problem down to this: table structure of interest: merchant_set merchant_set_id merchant merchant_id merchant_set_id customer customer_id merchant_set_id -- failure (c

Re: [INTERFACES] [GENERAL] PGSQL and Javascript

2009-01-30 Thread Sean Davis
On Fri, Jan 30, 2009 at 7:43 AM, Reg Me Please wrote: > I already have a JS interpreter (spidermonkey) but there is no PGSQL > interfacing API! > This'd be why I'm asking. > Ah. Sorry again. No idea if this will be useful, but you might take a look at: http://ww

Re: [INTERFACES] [GENERAL] PGSQL and Javascript

2009-01-30 Thread Sean Davis
is Rhino for java. Sean > > On Friday 30 January 2009 12:53:05 Allan Kamau wrote: > > May be Javascript + JDBC not sure. > > > > But the question is why would you want to do so? > > Javascript can be read easily by the user having the javascript > > running on

Re: [GENERAL] [INTERFACES] PGSQL and Javascript

2009-01-30 Thread Sean Davis
No. I'm not sure how that could be done given the security concerns. Sean On Fri, Jan 30, 2009 at 6:40 AM, Reg Me Please wrote: > Hello all. > > Is there a way to directly access PGSQL from a Javascript application? > With no application server intervention, I mean. > J

[GENERAL] General data warehousing questions

2008-10-05 Thread Sean Davis
r hints on using postgres in a data warehousing/mining environment. Any suggestions on how DDL, loading, backup, indexing, or (to a certain extent) hardware? Thanks, Sean -- 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] MySQL to Postgresql schema conversion

2008-09-30 Thread Sean Davis
On Tue, Sep 30, 2008 at 1:18 PM, Merlin Moncure <[EMAIL PROTECTED]> wrote: > On Tue, Sep 30, 2008 at 12:48 PM, Sean Davis <[EMAIL PROTECTED]> wrote: >> On Tue, Sep 30, 2008 at 10:08 AM, Sean Davis <[EMAIL PROTECTED]> wrote: >>> There are a number of mysql to

Re: [GENERAL] MySQL to Postgresql schema conversion

2008-09-30 Thread Sean Davis
On Tue, Sep 30, 2008 at 10:08 AM, Sean Davis <[EMAIL PROTECTED]> wrote: > There are a number of mysql to postgresql converters available, but > many of them have significant shortcomings. Has anyone found a tool > that works well? I am trying to convert a couple of relatively

[GENERAL] MySQL to Postgresql schema conversion

2008-09-30 Thread Sean Davis
There are a number of mysql to postgresql converters available, but many of them have significant shortcomings. Has anyone found a tool that works well? I am trying to convert a couple of relatively large, public schema to postgresql. Thanks, Sean -- Sent via pgsql-general mailing list (pgsql

[GENERAL] [OT] RAID controllers blocking one another?

2008-01-17 Thread Sean Davis
writing and somewhat faster for reading, but the "blocking" is problematic, as the machine is serving multiple purposes. I know this is off-topic, but I know lots of folks here deal with very large disk arrays; it is hard to get real-world input on machines such as these. Thanks, Sean

Re: [GENERAL] Deploy postgres - upgrade strategy

2007-12-20 Thread Sean Z.
Sorry I am not familiar with hyperic. Do you mean I can use hyperic to do the job, or do you mean I can take the same approach as hyperic? - Original Message From: Scott Marlowe <[EMAIL PROTECTED]> To: Sean Z. <[EMAIL PROTECTED]> Cc: pgsql-general@postgresql.org Sen

Re: [GENERAL] Deploy postgres - upgrade strategy

2007-12-20 Thread Sean Z.
BTW, what's the best way to determine the installation folder, port number used by an existing postgres server? From registry HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations ? - Original Message From: Scott Marlowe <[EMAIL PROTECTED]> To: Sean Z. <[EMAIL PROTECT

Re: [GENERAL] Deploy postgres - upgrade strategy

2007-12-19 Thread Sean Z.
any version existing on the same windows box? - Original Message From: Scott Marlowe <[EMAIL PROTECTED]> To: Sean Z. <[EMAIL PROTECTED]> Cc: pgsql-general@postgresql.org Sent: Wednesday, December 19, 2007 1:04:19 PM Subject: Re: [GENERAL] Deploy postgres - upgrade strategy

[GENERAL] Deploy postgres - upgrade strategy

2007-12-19 Thread Sean Z.
VICEDOMAIN="%COMPUTERNAME%" SERVICEPASSWORD="SecretWindowsPassword123" CREATESERVICEUSER=1 SUPERPASSWORD="postgres" BASEDIR="C:\Program Files\PostgreSQL" DATADIR="e:\PostgreSQL.DATA" Thanks a lot! Sean _

[GENERAL] Limit record count

2007-12-17 Thread Sean Z.
Hi, I need to write a maintenance function to delete oldest records of a table, leaving only a certain number of records, say 50. The task should run once per day. How can I write it? The oldest record carries the smallest ID. Thanks a lot! Sean

Re: [GENERAL] plpython array support

2007-11-19 Thread Sean Davis
On Nov 19, 2007 9:08 PM, Jorge Godoy <[EMAIL PROTECTED]> wrote: > Em Monday 19 November 2007 19:29:51 Sean Davis escreveu: > > Just a simple question--does plpythonu (8.3beta) have support for > > arrays? I don't see a specific mention of it in the docs, so I > >

[GENERAL] plpython array support

2007-11-19 Thread Sean Davis
Just a simple question--does plpythonu (8.3beta) have support for arrays? I don't see a specific mention of it in the docs, so I suppose not. Thanks, Sean ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ?

[GENERAL] plpython and error catching

2007-11-19 Thread Sean Davis
3beta2) implies that errors generated in functions are genuine python errors that I should be able to catch. Thanks, Sean ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] XML schema

2007-11-16 Thread Sean Davis
On Nov 16, 2007 2:14 PM, Peter Eisentraut <[EMAIL PROTECTED]> wrote: > Sean Davis wrote: > > I meant a schema that > > represents a general mapping between XML and a relational schema. In > > other words, I am looking for tools that use postgresql as the storage

Re: [GENERAL] XML schema

2007-11-16 Thread Sean Davis
On Nov 15, 2007 6:20 PM, Peter Eisentraut <[EMAIL PROTECTED]> wrote: > Sean Davis wrote: > > Is the current XML datatype (in 8.3) the direction of the > > future, or is something more akin to a dedicated XML schema (I think > > this is the route that Oracle has gone) go

[GENERAL] XML schema

2007-11-15 Thread Sean Davis
dedicated XML schema (I think this is the route that Oracle has gone) going to be important? Thanks, Sean ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTE

[GENERAL] XML database

2007-11-01 Thread Sean Davis
. Thanks, Sean ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

[GENERAL] Partitioning: how to exclude unrelated partitions?

2007-10-29 Thread Sean Z.
s=1)" " Filter: (event_time > '2007-10-25 20:00:00-04'::timestamp with time zone)" Every partition table is "Seq Scan"ned, I think unrelated tables are not excluded in the query. Only table events_day_25 should be included in scan I believe. Do I miss anything? Best, Sean __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: [GENERAL] more problems with count(*) on large table

2007-09-28 Thread Sean Davis
from day to day. No data has been deleted from the table > yet, just added. > > Here is some config info: > > PostgreSQL 8.1.8 on Fedora 3 Have you vacuumed recently? Sean ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] GRANT on group does not give access to group members

2007-09-15 Thread Sean Davis
using the grant wizard. Sean ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] use COPY TO on normalized database

2007-09-15 Thread Sean Davis
"real" 3NF tables. If you do all of this within a transaction, if anything breaks, you can rollback and have no problems with data integrity. Sean ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your

[GENERAL] pam authentication

2007-09-11 Thread Sean Davis
estions on what is up? Thanks, Sean ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

[GENERAL] Running OS-level programs from Postgres?

2007-06-20 Thread Sean Murphy
Maybe this is a well duh kind of question, or maybe there's no straightforward way to do it, but is there any way that I could have a pg function initiate a process on the host system? Specifically I'd like to script an email to send off on an insert trigger, but the ability to initiate system pro

Re: [GENERAL] [NOVICE] Recursive relationship - preventing cross-index entries.

2007-06-20 Thread Sean Davis
e that can check the constraints. http://www.postgresql.org/docs/8.2/static/triggers.html However, I wonder whether it might not make more sense to go with an account system, with an account balance and credits and debits to the account. Is the system you are proposing really the best data model

Re: [GENERAL] Distributing PostGres database to various customers

2007-06-11 Thread Sean Davis
million rows in them initially if we > convert old data. I would give backup/restore a try. A million rows isn't very big in postgres terms. On relatively low-end hardware, I am routinely able to backup about 300Gb in about 35 databases in under 3 hours. Sean

Re: [GENERAL] Idle session timeout?

2007-05-08 Thread Sean Murphy
Scott Marlowe wrote: > On Tue, 2007-05-08 at 15:59, Sean Murphy wrote: >> Scott Marlowe wrote: >>> On Tue, 2007-05-08 at 12:19, Sean Murphy wrote: >>>> Tom Lane wrote: >>>>> Sean Murphy <[EMAIL PROTECTED]> writes: >>>>&

Re: [GENERAL] Idle session timeout?

2007-05-08 Thread Sean Murphy
Scott Marlowe wrote: > On Tue, 2007-05-08 at 12:19, Sean Murphy wrote: >> Tom Lane wrote: >>> Sean Murphy <[EMAIL PROTECTED]> writes: >>>> I'm WAY out of my depth here, but my impression, based on the >>>> circumstances, is that there is some

Re: [GENERAL] Idle session timeout?

2007-05-08 Thread Sean Murphy
Tom Lane wrote: > Sean Murphy <[EMAIL PROTECTED]> writes: >> I'm WAY out of my depth here, but my impression, based on the >> circumstances, is that there is some sort of an idle session timeout >> kicking in (most likely on the client side) and dropping the

[GENERAL] Idle session timeout?

2007-05-08 Thread Sean Murphy
I've got a bunch of users on VB applications connecting to PG 8.2.3 via psqlodbc with SSL. For a variety of reasons, some good, some probably bad, I have the app open a connection and leave it open, using it as needed to run queries back and forth. If I look in my logs, I see loans of little clust

[GENERAL] Versioning

2007-04-10 Thread Sean Davis
adow table with "old" versions of a row 4) Maintain a shadow table with only diffs from the original and metadata on when the changes took place 5) Other? Has anyone suggestions on what might work "best"? The "rows" here are going to be simple text fiel

Re: [GENERAL] Table design - unknown number of column

2006-11-09 Thread Sean Davis
all flags 3) You can expand to an arbitrary number of flags 4) Your schema remains normalized Sean ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[GENERAL] Creating a date/time search function in Postgres.

2006-09-03 Thread Sean O'Loughlin
Hi all,I have a question about how a certain function would look. Basically, what I want to do is having something that would take in a 'from' date (day, month, year) and a 'to' date (also day, month and year) and then spit back a series of records whose timestamps fall between those two dates. How

Re: [GENERAL] pgsql vs mysql

2006-07-12 Thread Sean Davis
ent is quite trivial (we learn that from > pg_dump), but can someone hint on how to use it from perl scrypt? With > "use DBI" module? > See the DBD::Pg documentation, under "copy support". Sean ---(end of broadcast)---

[GENERAL] Delete cascade and trigger permissions?

2006-07-06 Thread Brennan, Sean (IMS)
I seem to have a problem accessing a temp table from a trigger when I use cascading deletes. I have 2 tables: a main table and a child table. The child table has a foreign key reference to the main table that has DELETE CASCADE on. I have delete triggers on both tables that are run BEFORE DELETE.

Re: [GENERAL] Best open source tool for database design / ERDs?

2006-06-01 Thread Sean Davis
On 6/1/06 12:29 PM, "Tomi NA" <[EMAIL PROTECTED]> wrote: > On 6/1/06, Sean Davis <[EMAIL PROTECTED]> wrote: >> You might look into Eclipse (the java-based IDE). It has at least one ERD >> design plugin that allows graphical layout, editing of schema, and &

Re: [GENERAL] Best open source tool for database design / ERDs?

2006-06-01 Thread Sean Davis
You might look into Eclipse (the java-based IDE). It has at least one ERD design plugin that allows graphical layout, editing of schema, and generation of DDL directly from the schema. It works with many DB platforms and is FREE!!! Sean On 6/1/06 5:44 AM, "[EMAIL PROTECTED]" <[EM

Re: [GENERAL] FATAL: could not read statistics message

2006-05-16 Thread Sean Davis
Tony Wasson wrote: On 5/16/06, Tom Lane <[EMAIL PROTECTED]> wrote: "Tony Wasson" <[EMAIL PROTECTED]> writes: > When I saw the same error as you, the stats collector process was > missing. The collector, or the buffer process? The reported message would be emitted by the buffer process, after

Re: [GENERAL] FATAL: could not read statistics message

2006-05-16 Thread Sean Davis
Jim C. Nasby wrote: On Tue, May 16, 2006 at 03:41:07PM -0400, Sean Davis wrote: I had cranked things up a bit from the standard install. shared_buffers = 15000 # min 16 or max_connections*2, 8KB each #temp_buffers = 1000# min 100, 8KB each

Re: [GENERAL] FATAL: could not read statistics message

2006-05-16 Thread Sean Davis
On 5/16/06 3:08 PM, "Tony Wasson" <[EMAIL PROTECTED]> wrote: > On 5/16/06, Sean Davis <[EMAIL PROTECTED]> wrote: >> I am using postgresql 8.1.0 on an Xserver running MacOS 10.3.9. I am >> getting the following in the log every minute for the past couple

[GENERAL] FATAL: could not read statistics message

2006-05-16 Thread Sean Davis
conclusion was reached. Tom suggested that an EAGAIN signal was being received from the system, but I'm not sure what this means exactly or why it is happening now, as we have had the server running for months. Any insight? Thanks, Sean ---(end of broa

[GENERAL] Rules on Select

2006-05-05 Thread Sean Hamilton
I have to log each time a user selects data from a table by inserting record in another table. For example I have table xzy user test selects id, name from table xyz. I want to insert into table xyz_log user, action, fields, timestamp test, select, id name, 12/1/05 02:00:21 How can i do this u

Re: [GENERAL] stored proc vs sql query string

2006-04-06 Thread Sean Davis
will probably need to ask that on another list. There are many other reasons to choose one language over another besides speed (in fact, I think speed is probably not the first thing to think about when choosing a language). Sean ---(end of broadcast)---

[GENERAL] Grant Priviliges on column

2006-03-17 Thread Sean Hamilton
Does Postgres support granting priviliges at the column level? ex. grant update on tableA (id, description) to user ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMA

Re: [GENERAL] psql is very slow

2006-02-24 Thread Sean Davis
k? (don't tell me to cut the > database :)) I assume that by "psql" you mean postgresql? You'll probably have to be more specific about what you are doing, what your database is like and how it is used, what you want to change, and what kinds of time you are talking about. S

Re: [GENERAL] Access Problem After Version Upgrade

2006-01-26 Thread Sean Davis
rt the server? Did you fix the pg_hba.conf file? Does your postgresql.conf file allow tcp connections? Those are the places I would look. Sean ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Normalized storage to denormalized report

2006-01-19 Thread Sean Davis
On 1/19/06 7:14 AM, "Martijn van Oosterhout" wrote: > On Thu, Jan 19, 2006 at 07:03:47AM -0500, Sean Davis wrote: >> I have a table that stores data like so: > > > >> And I would like to design a query that gives: >> >> Clone_idx e

[GENERAL] Normalized storage to denormalized report

2006-01-19 Thread Sean Davis
data, just reshaping. Thanks, Sean ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Loading large amounts of data in a SQL command

2006-01-05 Thread Sean Davis
les, but I find it easier to load the whole thing and then just do selects to grab the data and put it into normalized form. Hope that helps, Sean ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] inserting many rows

2006-01-03 Thread Sean Davis
all that you need. Have you tried simulating your application under expected loads so that you are sure that you are making the right choice? Sean ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Stored Procedure: PL/Perl or PL/SQL?

2005-12-29 Thread Sean Davis
could have changed recently, but I'm not aware of it. So, choose whichever is easiest for you for the job. If performance is the ONLY issue, then testing under real conditions is probably the only way to be sure that what you are doing is the right way. Sean -

Re: [GENERAL] Table design

2005-12-02 Thread Sean Davis
On 12/2/05 10:21 AM, "Guy Rouillier" <[EMAIL PROTECTED]> wrote: > Sean Davis wrote: >> This might be a bit off-topic, but I'm curious what folks would do >> with this >> situation: >> >> I have about 6 different tab-delimited file types,

[GENERAL] Table design

2005-12-02 Thread Sean Davis
ast choice. Thanks for any insight. (For replies, please try to reply to me directly as well as the list as I just get digests right now). Thanks, Sean ---(end of broadcast)--- TIP 4: Have you searched our list archives?

Re: [GENERAL] Question on Insert / Update

2005-11-09 Thread Sean Davis
he records in the form of a tab-delimited file is to COPY or \copy (in psql) them into a separate loader table and then use SQL to manipulate the records (check for duplicates, etc) for final insertion into the table. Sean ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] querying PostgreSQL version?

2005-10-26 Thread Sean Davis
On 10/26/05 8:52 AM, "Zlatko Matić" <[EMAIL PROTECTED]> wrote: > Hello. > > Is there any way to check the version of PostgreSQL by a query? Maybe by > querying catalog tables? Select version(); ---(end of broadcast)--- TIP 6: explain analyze is y

Re: [GENERAL] How to get the value in the lastvalue field

2005-10-26 Thread Sean Davis
estored with database dumps, unless you are dumping and restoring only data. Is that the case? Sean ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [GENERAL] How to get the value in the lastvalue field

2005-10-26 Thread Sean Davis
currval of sequence "field_seq" is not yet defined in this session. > > I think currval will work only after an insert. I don't want to use nextval as > this increases the lastvalue value. That is correct. You can't call currval until you have called ne

Re: [GENERAL] newbie question: reading sql commands from script files

2005-10-24 Thread Sean Davis
Title: [GENERAL] newbie question: reading sql commands from script files In psql, look at \i.   Sean   - Original Message - From: basel novo To: pgsql-general@postgresql.org Sent: Monday, October 24, 2005 8:28 PM Subject: [GENERAL] newbie question: reading

Re: [GENERAL] Tables

2005-10-20 Thread Sean Davis
single column that contains the same id. See any of MANY online tutorials on SQL for an introduction or get a book on SQL. I found that I had to sit and type verbatim from multiple sources before I really understood what was going on, so you may want to try that. Google for SQL tu

Re: [GENERAL] getting around---division by zero on numeric

2005-10-19 Thread Sean Davis
sum(sales) != 0 Can you use case? http://www.postgresql.org/docs/8.0/interactive/functions-conditional.html Or you could create a simple function to do the logic to avoid the division by zero. Sean ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] graphs in PostgreSQL

2005-10-13 Thread Sean Davis
.gmod.org/schema/index.shtml) project can comment on computing the transitive closure using stored procedures, but I think they do that for their project. Sean ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [GENERAL] Question about stored procedures

2005-10-13 Thread Sean Davis
r as file manipulation. http://www.postgresql.org/docs/8.0/static/server-programming.html Sean ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] About transform SQL grammar from postgresql 8.0 to

2005-10-11 Thread Sean Davis
ator. However, MANY, MANY features from postgres 8.0 will not be available on mysql 3 (really?). So, I think you may have to do a bit of editing to make it work correctly, in any case. If this is a one-time thing, do it by hand. If doing on a regular basis, you might need to script thin

  1   2   3   >