Re: [GENERAL] Removing and readding bdr nodes

2017-03-09 Thread Nathan Valentine
Sorry for the paleo post but curious if there was ever a resolution for this issue regarding BDR member join/eject: https://goo.gl/N7FoUB I'm currently seeing very similar behavior for the latest version of BDR where cluster nodes are very confused about the state of their connections/replication

Re: [GENERAL] Conferences for a DBA?

2017-02-27 Thread Nathan Stocks
Thank you for mentioning location, Josh. I should have noted that I am in the western United States. From: Joshua D. Drake Sent: Monday, February 27, 2017 4:39:08 PM To: Nathan Stocks; pgsql-general@postgresql.org Subject: Re: [GENERAL] Conferences for a DBA

[GENERAL] Conferences for a DBA?

2017-02-27 Thread Nathan Stocks
What worthwhile conferences should a PostgreSQL DBA consider going to? There have been some good sessions at OSCON in the past, but I was wondering about more DBA-specific events. ~ Nathan

Re: [GENERAL] Indexing large table of coordinates with GiST

2015-01-15 Thread Nathan Clayton
On 1/15/2015 12:36 PM, Daniel Begin wrote: Thank, there is a lot of potential ways to resolve this problem! For Rob, here is a bit of context concerning my IT environment… Windows 7 64b Desktop, running with an Intel i7 core and 16GB ram. The PostgreSQL 9.3 database is stored on a 3TB extern

Re: [GENERAL] Success stories of PostgreSQL implementations in different companies

2013-05-23 Thread Nathan Clayton
On Thu, May 23, 2013 at 2:51 PM, Steve Crawford < scrawf...@pinpointresearch.com> wrote: > On 05/23/2013 02:36 PM, Oscar Calderon wrote: > >> Hi, this question isn't technical, but is very important for me to know. >> Currently, here in El Salvador our company brings PostgreSQL support, but >> Ora

Re: [GENERAL] Yet Another Timestamp Question: Time Defaults

2013-01-21 Thread Nathan Clayton
de to dateroll the system. Until then the time field continues to grow, so you see times like 25:00 and 26:00 all the time. Exceptions abound. -- Nathan -- 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 by partial timestamp

2013-01-09 Thread Nathan Clayton
On Jan 8, 2013 6:15 PM, "Kirk Wythers" wrote: > > > On Jan 8, 2013, at 6:48 PM, Tom Lane wrote: > >> The OP didn't >> suggest how many years his data covers, but it's quite possible that >> pulling a full year's worth of data will read enough of the table that >> there's no point in worrying abou

Re: [GENERAL] large database

2012-12-16 Thread Nathan Clayton
On Dec 11, 2012 2:25 PM, "Adrian Klaver" wrote: > > On 12/11/2012 01:58 PM, Mihai Popa wrote: >> >> On Tue, 2012-12-11 at 10:00 -0800, Jeff Janes wrote: >>> >>> On Mon, Dec 10, 2012 at 12:26 PM, Mihai Popa wrote: Hi, I've recently inherited a project that involves importing a

Re: [GENERAL] opened connection

2012-09-30 Thread Nathan Wagner
On Sun, Sep 30, 2012 at 06:54:35PM +0200, Levente Kovacs wrote: > I've been using PostgreSQL for quite while, but I'd need some direction on > how to handle an opened socket to the database in longer periods. > > I open the connection to my database with PQconnectdb(). > > I access the database,

Re: [GENERAL] deferring pk constraint

2011-11-15 Thread Nathan Wagner
On Tue, 15 Nov 2011 18:56:37 -0700, J.V. wrote: I have a table with existing data for which I need to: 1) drop the single primary key column (int4) 2) recreate the column with the pk (not null) constraint deferred 3) repopulate the column from a sequence 4) enable the constraint When I issue th

[GENERAL] select all rows where any column is NULL

2011-07-26 Thread Nathan Boley
Does anyone have a concise way of doing $SUBJECT? Best, Nathan -- 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] a question about row estimation in postgres

2011-03-20 Thread Nathan Boley
8) / (33 - 8) / 10 * 1302 = 10.416 > instead of 11 and 7? > Perhaps I am missing something. I'd appreciate if you can point it out. IIRC, you need to subtract the rows that are mcv's from the row count. ie, you're not working with the full 1302 rows, only the ones that are not m

[GENERAL] plperl: spi_query_prepared/spi_fetchrow versus spi_exec_prepared: memory?

2009-11-16 Thread Nathan Jahnke
st. so what's the recommended way to use spi_exec_prepared() while being able to free the ram that it allocates for its result set? sometimes i just want everything and don't want to bother with a cursor. thanks, nathan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.o

Re: [GENERAL] SFPUG: Video from "Statistics and Postgres -- How the Planner Sees Your Data" Now on Vimeo

2009-10-15 Thread Nathan Boley
> > There is reference to slides with some > frequency though, are they available somewhere? > Ya. http://encodestatistics.org/publications/statistics_and_postgres.pdf Is there a better place for this? -Nathan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.

Re: [GENERAL] Current state of XML capabilities in PostgreSQL?

2009-09-16 Thread Nathan Widmyer
I have this XML that I don't wish to parse out to tables (BTDT and don't wish to go there for the most part). There might be the uncommon chance where an XML-friendly operation would be very useful. On 9/16/09, Scott Bailey wrote: >> I'm looking for the current state of XML capabilities in Post

[GENERAL] Current state of XML capabilities in PostgreSQL?

2009-09-16 Thread Nathan Widmyer
Hello, I'm looking for the current state of XML capabilities in PostgreSQL and I'm coming up with a lot of confusing links and a bit short on documentation. I first read that there used to be an xml2 contrib module for Postgres that provided a lot of functions to read/write and simultaneously val

Re: [GENERAL] bytea corruption?

2009-08-23 Thread Nathan Jahnke
iel verite) explicitly decode bytea after select via sth: no nathan On Sun, Aug 23, 2009 at 9:20 AM, Colin Streicher wrote: > I'm probably a little late to this discussion, but I have had issues before > with BYTEA in postgres before as well, this is what I found worked. > > use Di

Re: [GENERAL] bytea corruption?

2009-08-22 Thread Nathan Jahnke
cute($id); my $newref = $getall_sth->fetchrow_hashref; my $newdata = $newref->{data}; print md5_hex($data).' '; print '!' if md5_hex($data) ne md5_hex($newdata); print '= '.md5_hex($newdata); print "\n"; -- nathan On Sat, Aug 22, 2009 at 9:17 AM, Dan

Re: [GENERAL] bytea corruption?

2009-08-21 Thread Nathan Jahnke
good catch - it's because i'm used to working in plperlu. unfortunately commenting out those lines makes no difference for this particular data (that i linked in my original email); it's still corrupted: # ./bytea.pl 37652cf91fb8d5e41d3a90ea3a22ea61 != ce3fc63b88993af73fb360c70b

[GENERAL] bytea corruption?

2009-08-21 Thread Nathan Jahnke
1)) : "\\"!ge; #decode bytea column storage format print md5_hex($data).' '; print '!' if md5_hex($data) ne md5_hex($newdata); print '= '.md5_hex($newdata); print "\n"; __END__ hash of data changes ... if you uncomment the $data = '123abc&#x

[GENERAL] Privilege problems: access denied on select for owner?

2009-08-03 Thread Nathan Jahnke
le" to have all privileges on all tables in the database "sample". Any insight would be much appreciated. Thanks, Nathan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] plperl spi_prepare and arrays

2009-07-22 Thread Nathan Jahnke
http://archives.postgresql.org/pgsql-general/2006-08/msg01472.php ... which suggests to me that it is indeed possible, but I would like more details. Thank you very much. Nathan -- 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] Q: data modeling with inheritance

2009-07-02 Thread Nathan Boley
variants table, all phenotypes are in the phenotypes table, and you join through association. It's not as elegant as inheritance, but it will be much more flexible in both the types of queries that you can write and in case your requirements change. -Nathan -- Sent via pgsql-general mailing

Re: [GENERAL] Streaming PUG meeting: PostgreSQL Genetics!

2009-03-14 Thread Nathan Boley
>> Will there be a saved version of this (SFPUG talk) available for later >> viewing? Don't >> make me choose between steak and beer and postgres. 8( > > Yes!  I'll announce it here when it's available. > Is there any update on this? -Nathan --

Re: [GENERAL] GROUP BY hour

2008-08-01 Thread Nathan Thatcher
Brilliant! On Fri, Aug 1, 2008 at 12:18 PM, Steve Crawford <[EMAIL PROTECTED]> wrote: > Nathan Thatcher wrote: >> >> I have, what I imagine to be, a fairly simple question. I have a query >> that produces output for a line graph. Each row represents an interval >>

[GENERAL] GROUP BY hour

2008-08-01 Thread Nathan Thatcher
I have, what I imagine to be, a fairly simple question. I have a query that produces output for a line graph. Each row represents an interval on the graph. SELECT COUNT(call_id) AS value, EXTRACT(hour from start_time) AS hour FROM c_call WHERE start_time >= '2008-08-01 00:00:00' AND end_time <= '

Re: [GENERAL] full vacuum really slows down query

2008-06-08 Thread Nathan Boley
> I have a query that takes 2 sec if I run it from a freshly restored dump. > If I run a full vacuum on the database it then takes 30 seconds. What do the two plans look like? Can you post the explains? -Nathan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) T

[GENERAL] Create database without entering password at command line

2008-05-19 Thread Nathan Thatcher
I am trying to automatically create a database right after installing postgres. I launch the silent install (Windows) from my own executable and once it is done I need to create a database, tables, etc. I am trying to find a way to do this without having to explicitly enter the password in at the c

Re: [GENERAL] Alias in the HAVING clause

2008-05-13 Thread Nathan Thatcher
Tue, May 13, 2008 at 5:43 PM, Nathan Thatcher <[EMAIL PROTECTED]> wrote: > > > Is this the correct way to do this, or is there a better way / a way > > to get PostgreSQL to recognize an alias in the HAVING clause? > > As Tom pointed out, f1's not in scope for the H

Re: [GENERAL] Alias in the HAVING clause

2008-05-13 Thread Nathan Thatcher
Oops, that second query should be SELECT COUNT(*), id % 3 AS f1 FROM table GROUP BY f1 HAVING id % 3 <> 0; On Tue, May 13, 2008 at 3:43 PM, Nathan Thatcher <[EMAIL PROTECTED]> wrote: > I am in the middle of switching a bunch of queries over from MySQL to > PostgreSQL and have

[GENERAL] Alias in the HAVING clause

2008-05-13 Thread Nathan Thatcher
I am in the middle of switching a bunch of queries over from MySQL to PostgreSQL and have hit a little snag. The following query works fine in MySQL but raises an error in postgres: SELECT COUNT(*), id % 3 AS f1 FROM table GROUP BY f1 HAVING f1 <> 0; It seems that Postgres does not recognize the

Re: [GENERAL] Custom C function - is palloc broken?

2008-05-04 Thread Nathan Thatcher
So what options does that leave all of us who need to compile and run our custom C functions in Windows? On Sun, May 4, 2008 at 4:47 PM, Craig Ringer <[EMAIL PROTECTED]> wrote: > Magnus Hagander wrote: > > > > Dan "Heron" Myers wrote: > > > > > > > > > I read somewhere on Postgres' website that th

[GENERAL] Custom C function - is palloc broken?

2008-05-04 Thread Nathan Thatcher
First off, I am developing custom c functions for PostgreSQL 8.3 in Windows (sorry... not my choice). It appears that there is some underlying problem in the server that is causing a runtime error to crash the server when I use palloc. For example... I run the following: PG_FUNCTION_INFO_V1(add_on

[GENERAL] User Defined C Function with minGW

2008-05-03 Thread Nathan Thatcher
I have been creating some user defined C functions using minGW and postgreSQL 8.3. Everything works great when I use integers, timestamps, points, etc. I have compiled, linked, created, and tested multiple function and aggregates. The problem occurs when I have a text parameter and need to use PG_

Re: [GENERAL] inheritance. more.

2008-05-01 Thread Nathan Boley
inactive_users allows me to tell the database (indirectly) that the active users index should stay in memory, while the inactive users can relegated to disk. -Nathan On Thu, May 1, 2008 at 6:02 AM, Jeremy Harris <[EMAIL PROTECTED]> wrote: > Gurjeet Singh wrote: > > > One of the

[GENERAL] UUID vs int keys....

2008-03-03 Thread Nathan Wilhelmi
Hello - Curious if anyone has any experience with the new UUID type in 8.3? We are currently using sequences for all of our keys and ids. However using a UUID instead of a sequence would make some parts of the application easier. However we have a few concerns about performance issues surroundi

Re: [GENERAL] Deferred constraints and locks...

2008-02-14 Thread Nathan Wilhelmi
Jan Wieck wrote: On 2/12/2008 3:04 PM, Tom Lane wrote: Nathan Wilhelmi <[EMAIL PROTECTED]> writes: Hello - Trying to track down a lock contention problem, I have a process that does a series of select / insert operations. At some point the process grabs a series of RowExclusiveLock(

Re: [GENERAL] Deferred constraints and locks...

2008-02-12 Thread Nathan Wilhelmi
Tom Lane wrote: Nathan Wilhelmi <[EMAIL PROTECTED]> writes: Hello - Trying to track down a lock contention problem, I have a process that does a series of select / insert operations. At some point the process grabs a series of RowExclusiveLock(s) and has the obvious effect of st

[GENERAL] Deferred constraints and locks...

2008-02-12 Thread Nathan Wilhelmi
Hello - Trying to track down a lock contention problem, I have a process that does a series of select / insert operations. At some point the process grabs a series of RowExclusiveLock(s) and has the obvious effect of stalling other processes. I logged all the statements and don't see any for up

Re: [GENERAL] Getting the count(*) from two tables and two date ranges in same query

2008-01-28 Thread nathan wagner
ong, though easily modified to add "and table1_id = foo". > Wouldn't I need to use a UNION for this kind of query? A union will combine rows (if they're compatible) from two queries, What you are asking is to assemble columns, which is entirely different. -- nathan wagner

Re: [GENERAL] Getting the count(*) from two tables and two date ranges in same query

2008-01-28 Thread nathan wagner
hat "a BETWEEN x AND y is equivalent to a >= x AND a <= y" Which is wrong (though it may be required by the standard, of course). 1 is not between 1 and 2. "between" shouldn't include the endpoints. At any rate, the OP will know what he meant by "betwe

[GENERAL] Disk configurations....

2008-01-24 Thread Nathan Wilhelmi
Hello - Typically case of a software guy needing to spec hardware for a new DB server. Further typified case of not knowing exact amount of data and I/O patterns. So if you were to spec a disk system for a new general purpose PostgreSQL server any suggestions of what to start with? Details I h

[GENERAL] Specify client encoding for backups...

2007-12-18 Thread Nathan Wilhelmi
Hello - We are using PG_ADMIN backup to create the schema DDL scripts for our application. Is there any way to get PGAdmin to not include the encoding value or configure PostgreSQL to set the client encoding to UNICODE? Having problems with the JDBC driver and the UTF8 encoding when we try to e

Re: [GENERAL] setting and using variables in PSQL ????

2007-12-14 Thread Nathan Wagner
(1 row) granicus% but I probably wouldn't do it this way at all. something like (untested) select A.name, A.val1 as age, S.val12 as size from agedata A left outer join sizedata S on S.name = A.name; should work. -- Nathan Wagner [EMAIL PROTECTED] ---

[GENERAL] Script to reset all sequence values in the a given DB?

2007-12-10 Thread Nathan Wilhelmi
Hello - Does anyone happen to have a SQL script or function that can reset all the sequence values found in a given DB? When we rebuild the DB it would be handy to be able to set all the sequence back to a known starting place. Thanks! -Nate ---(end of broadcast)

[GENERAL] Importance of CPU floating point performance...

2007-11-09 Thread Nathan Wilhelmi
Hello - Trying to find out how much floating point operation performance effects Postgres in general. Looking at some lower power machines that have good integer performance but not great floating point performance, shared FPU across cpus. If we store, but don't use in query criteria, floating

[GENERAL] Configuration starting point...

2007-09-19 Thread Nathan Wilhelmi
Hello - Several people kindly responded directly to me with some specific suggestions for this, however the message was mistakenly deleted and not in the archives. If you remember who you are and wouldn't mind resending that would be fantastic! Thanks! -Nate Hello - Just installed 8.2.4 on a

[GENERAL] Configuration starting point...

2007-08-10 Thread Nathan Wilhelmi
Hello - Just installed 8.2.4 on a Solaris 9 box. It's an 8-way (15000 MHz sparc) with 32GB of ram. We don't know the exact table structure yet or access patterns, although the first thing that will be looked at is a Sesame triple store DB. I would expect that this DB will be more skewed to read

Re: [GENERAL] 8.1 vs 8.2.1 view optimization

2007-01-16 Thread Nathan Bell
the sub-select to a different non-volatile view or do I need to create a non-volatile function that returns the result? Thanks for the help. Tom Lane wrote: Nathan Bell <[EMAIL PROTECTED]> writes: Firing up 8.2.1 I notice that sub-items in a view are optimized out if they

[GENERAL] 8.1 vs 8.2.1 view optimization

2007-01-16 Thread Nathan Bell
for illistration purposes only, and is made only to take time. Thanks in advance for any help, Nathan Bell IT Engineer Action Target, Inc. create trusted language 'plpgsql' handler plpgsql_call_handler lancompiler 'PL/pgSQL'; create table small ( only_item int4 ); cre

[GENERAL] Update Perrformance with nested loop vs. merge-join

2006-12-06 Thread Nathan Boley
rmal processor usage sits at about 10%. Maybe it keeps trying to cache and resort table2? I don't really have any idea, but that is my only guess. If anyone knows why this may be happenning, I would really appreciate it. Thanks, Nathan

[GENERAL] Data corruption problem...

2006-12-01 Thread Nathan Wilhelmi
Hello - Ran into an interesting problem last week with data unexpectedly being deleted. Has anyone else experienced this and have any suggestions on how to prevent this in the future? Here is the environment: Server: 8.0.3 on Solaris 9 JDBC Driver: 8.0.311 This is the series of statements tha

[GENERAL] Mac OS X

2006-11-09 Thread Nathan Leon Pace, MD, MStat
?Have I addressed my question to the correct list?Nathan Nathan Leon Pace, MD, MStatUniversity of UtahSalt Lake City, UT 84132Office: 801.581.6393Fax: 801.581.4367Cell: 801.205.1019Pager: 801.291.9019Home: 801.467.2925

[GENERAL] ablilty to test record for foreign key before deleting the record?

2005-11-15 Thread Nathan Clark
Is there a way to check to see if a record has a foreign key, before I try to delete a record ? To check first to see if this record is tied to a foreign key before I try to change it, thus avoiding a foreign key error.

[GENERAL] OS X Install

2004-10-15 Thread Nathan Mealey
on? Should I create a different user? NM -- Nathan Mealey Director of Operations Cycle-Smart, Inc. P.O. Box 1482 Northampton, MA 01061-1482 [EMAIL PROTECTED] (413) 587-3133 (413) 210-7984 Mobile (512) 681-7043 Fax

[GENERAL] Problems with a Trigger Statement

2004-04-20 Thread Nathan Schile
I want the following trigger to update a related table when ever a record is inserted/updated. I have the following trigger: CREATE TRIGGER update_status AFTER INSERT OR UPDATE ON public."Bug Status" FOR EACH ROW EXECUTE PROCEDURE public.update_status(); Which Calls this function: CREATE OR

[GENERAL] Selects with Array member

2001-01-19 Thread Nathan Heagy
r advice are greatly appreciated. Nathan Heagy ^^ Front Logic . Vividworks . Cow Comics . Thirty-Nine Days

[GENERAL] Selects with Array member

2001-01-19 Thread Nathan Heagy
r advice are greatly appreciated. Nathan Heagy ^^ Front Logic . Vividworks . Cow Comics . Thirty-Nine Days

[GENERAL] Index on Date_Trunc

2001-01-04 Thread Nathan Barnett
I am trying to create an index on the date_trunc('day', columna) in a table. When I try to create this index, I get a parse error near the single quote. Is there a workaround to create this index? I am using v7.0.3 on FreeBSD. -Nathan Barnett

RE: [GENERAL] Reliability Stability of PgSQL & it's JDBC driver

2000-12-13 Thread Nathan Barnett
on the list can probably correct me if any of this is incorrect. ----- Nathan Barnett -Original Message- From: Nikhil G. Daddikar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 13, 2000 3:21 AM To: Nathan Barnett; [EMAIL PROTECTED] Subjec

RE: [GENERAL] Reliability Stability of PgSQL & it's JDBC driver

2000-12-12 Thread Nathan Barnett
ity of Postgres in a production environment. ----- Nathan Barnett -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nikhil G. Daddikar Sent: Tuesday, December 12, 2000 8:42 AM To: [EMAIL PROTECTED] Subject: [GENERAL] R

[GENERAL] Memory Usage

2000-12-08 Thread Nathan Barnett
o complete this query without using all the RAM? ----- Nathan Barnett

RE: [GENERAL] Removing constraints

2000-11-13 Thread Nathan Barnett
Stephan, Thanks for the initial help. I followed your instructions, but now I'm getting an error: "ERROR: RelationBuildTriggers: 2 record(s) not found for rel nametable". Where else would these triggers be referenced. -----

[GENERAL] the List! the List

2000-11-02 Thread Nathan Suderman
by the number of 'set digest' messages I am seeing on the list I can finally assume that I am not the only one that this has happened to. The general list seems to have lost its digest setting, and for some reason I also got subscribed to the Hacker list. While I like receiving these messages

[GENERAL] Statistical Analysis

2000-07-24 Thread Nathan Barnett
time. --- Nathan Barnett

Re: [GENERAL] Re: [SQL] textsubstr() ...? for postgres 7 beta5

2000-04-30 Thread nathan
nction |arguments |description +-+---+--- text|text_substr |text int4 int4 |return portion of string Is this in 7.0 ? (PS this is not user defined, well at least I did not make it ...? ) thank you nathan

[GENERAL] textsubstr() ...? for postgres 7 beta5

2000-04-30 Thread nathan
I have installed the beta 7 for postgres but... it seems to be missing some text functions ? l like the textsubstr ? Is this beacuse it is a "beta" and the final release will include these or are they forever droped ? Please let me know thank you nathan

[GENERAL] Embedded SQL in 'C' (cursors)

1999-06-03 Thread nathan
ND DECLARE SECTION; EXEC SQL CONNECT 'nathan'; EXEC SQL DECLARE lets_get_tid CURSOR FOR SELECT type.tid; printf("Choose the TID to delete\n\n \n"); do{ EXEC SQL OPEN lets_get_tid; EXEC SQL FETCH lets_get_tid INTO //line 255 :Atid; printf("%s

[GENERAL] Debian 2.0 + libpgsql-6.3.8 + can't compile my program

1999-02-20 Thread Nathan L. Cutler
de to 6.2.1 it compiles just fine. Does anyone know the solution to (or a workaround for) this problem? Thanks very much in advance. Nathan L. Cutler