[GENERAL] Replication Recommendation

2016-09-12 Thread Lee Hachadoorian
olution of updating "master" and doing a full database drop and restore on the "slaves". But I would like to know which of the other (real) replication solutions might work for this use case. Regards, --Lee -- Lee Hachadoorian Assistant Professor of Instruction, Geography and Ur

Re: [GENERAL] Replication Recommendation

2016-09-12 Thread Lee Hachadoorian
On Mon, Sep 12, 2016 at 5:12 PM, Adrian Klaver wrote: > On 09/12/2016 12:46 PM, Lee Hachadoorian wrote: >> >> There are a wide variety of Postgres replication solutions, and I >> would like advice on which one would be appropriate to my use case. >> >> * Small (~

[GENERAL] Extensions and privileges in public schema

2016-12-04 Thread Lee Hachadoorian
the overall database organization might address both concerns. Best, --Lee -- Lee Hachadoorian Assistant Professor of Instruction, Geography and Urban Studies Assistant Director, Professional Science Master's in GIS Temple University

Re: [GENERAL] Extensions and privileges in public schema

2016-12-06 Thread Lee Hachadoorian
On Sun, Dec 4, 2016 at 4:24 PM, Paul Ramsey wrote: > When you create the student user, remove their create privs in public. > Then create a scratch schema and grant them privs there. > Finally, alter the student user so that the scratch schema appears FIRST > in their search path. This will cause

Re: [GENERAL] The first dedicated PostgreSQL forum

2010-11-15 Thread Lee Hachadoorian
s exist? > > Mainly I think it is the user interface and the fact that they are > external. They don't look, act or feel like forums. Shrug. Further they > aren't part of postgresql.org so nobody knows the level of real support > they are going to get. > > JD > >

[GENERAL] Current Schema for Functions called within other Functions

2013-03-31 Thread Lee Hachadoorian
ran into the same persistence problem. Once "initialized" in one schema, changing search_path to the other schema returns the correct current_schema but the value from the table in the *other* schema (e.g. "var2,var1"). What am I missing? Thanks, --Lee -- Lee Hachadoorian Asst Professor of Geography, Dartmouth College http://freecity.commons.gc.cuny.edu/

Re: [GENERAL] Current Schema for Functions called within other Functions

2013-04-01 Thread Lee Hachadoorian
Merlin, Perfect. Thank you. Best, --Lee On Mon, Apr 1, 2013 at 10:04 AM, Merlin Moncure wrote: > On Sun, Mar 31, 2013 at 5:32 PM, Lee Hachadoorian > wrote: > > I'm working on some PL/pgSQL functions to generate dynamic SQL. The > > functions live in the public schema

[GENERAL] SQL keywords are suddenly case sensitive

2013-04-16 Thread Lee Hachadoorian
hat I will be saving for reuse. version() = "PostgreSQL 9.1.8 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, 64-bit" Regards, --Lee -- Lee Hachadoorian Assistant Professor in Geography, Dartmouth College http://freecity.commons.gc.cuny.edu

Re: [GENERAL] SQL keywords are suddenly case sensitive

2013-04-16 Thread Lee Hachadoorian
On 04/16/2013 07:31 PM, Adrian Klaver wrote: On 04/16/2013 02:46 PM, Lee Hachadoorian wrote: List, SQL seems to be behaving in a case-sensitive manner: universe=# select 1; ?column? -- 1 (1 row) universe=# SELECT 1; ERROR: syntax error at or near "SELECT 1&qu

Re: [GENERAL] SQL keywords are suddenly case sensitive

2013-04-16 Thread Lee Hachadoorian
On 04/16/2013 07:34 PM, Adrian Klaver wrote: On 04/16/2013 02:46 PM, Lee Hachadoorian wrote: List, SQL seems to be behaving in a case-sensitive manner: universe=# select 1; ?column? -- 1 (1 row) universe=# SELECT 1; ERROR: syntax error at or near "SELECT 1&qu

Re: [GENERAL] SQL keywords are suddenly case sensitive

2013-04-16 Thread Lee Hachadoorian
at must have been an email formatting thing. In psql, the caret is under the S. Looking at the other issues you raised, but just wanted to provide a quick answer to that. Best, --Lee -- Lee Hachadoorian Assistant Professor in Geography, Dartmouth College http://freecity.commons.gc.cuny.edu

Re: [GENERAL] SQL keywords are suddenly case sensitive

2013-04-16 Thread Lee Hachadoorian
On 04/16/2013 08:23 PM, Tom Lane wrote: Lee Hachadoorian writes: SQL seems to be behaving in a case-sensitive manner: universe=# select 1; ?column? -- 1 (1 row) universe=# SELECT 1; ERROR: syntax error at or near "SELECT 1" LINE 1: SELECT 1; ^ Tha

Re: [GENERAL] Postgres case insensitive searches

2013-06-29 Thread Lee Hachadoorian
val_lower in sync and discard all attempts to write directly to val_lower. Then all queries would be of the form SELECT id, val FROM foo WHERE val_lower LIKE 'ab%'; Wouldn't want to write every table like this, but if (a) query speed trumps all othe

[GENERAL] PostgreSQL won't start

2008-03-12 Thread Lee Hachadoorian
PostgreSQL directory has read/write access (it does). What else can I try to start the server? Thanks, Lee Hachadoorian PhD Student, Geography Program in Earth & Environmental Sciences CUNY Graduate Center -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make chan

Re: [GENERAL] PostgreSQL won't start

2008-03-12 Thread Lee Hachadoorian
ured to) and when I try to start it manually within the Component Services Manager, it generates the following error: Error 1069: The service did not start due to a logon failure. Thanks, Lee Hachadoorian PhD Student, Geography Program in Earth & Environmental Sciences CUNY Graduate Center On We

Re: [GENERAL] pg_wrapper error

2012-10-26 Thread Lee Hachadoorian
is installed. If it weren't, you would get pg_wrapper: command not found The issue is that it seems raster2pgsql and shp2pgsql are not installed. You cannnot "enable" them by making them each a link to pg_wrapper. You might want to bring this back to the PostGIS list, be

[GENERAL] Check table storage parameters

2012-11-16 Thread Lee Hachadoorian
LTER TABLE. Thanks, --Lee -- Lee Hachadoorian Asst Professor of Geography, Dartmouth College http://freecity.commons.gc.cuny.edu/ -- 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] Check table storage parameters

2012-11-16 Thread Lee Hachadoorian
> On Fri, Nov 16, 2012 at 10:11 AM, Lee Hachadoorian > wrote: >> >> How can I read the current storage parameters for an existing table? >> Specifically interested in autovacuum_enabled. On Fri, Nov 16, 2012 at 12:08 PM, Mike Blackwell wrote: > Try pg_cla

[GENERAL] Client Encoding and Latin characters

2009-11-24 Thread Lee Hachadoorian
Nx languages. If I ever try to COPY FROM data incompatible with LATIN1, the command will just choke, and I can pick an appropriate encoding and try again, right? Thanks, --Lee -- Lee Hachadoorian PhD Student, Geography Program in Earth & Environmental Sciences CUNY Graduate Center -- Sent via

Re: [GENERAL] Client Encoding and Latin characters

2009-11-24 Thread Lee Hachadoorian
           regards, tom lane > So, IIUC, the general approach is: *Leave the default client_encoding = server_encoding (in this case UTF8) *Rely on the client to change client_encoding on a session basis only Thanks, --Lee -- Lee Hachadoorian PhD Student, Geography Program in Earth & Enviro

[GENERAL] Array columns vs normalized table

2010-03-02 Thread Lee Hachadoorian
quarters. Thanks, --Lee -- Lee Hachadoorian PhD Student, Geography Program in Earth & Environmental Sciences CUNY Graduate Center -- 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] Array columns vs normalized table

2010-03-02 Thread Lee Hachadoorian
terly data out of sight. Thanks for your replies. Please feel free to comment if you think of anything else. Best, --Lee -- Lee Hachadoorian PhD Student, Geography Program in Earth & Environmental Sciences CUNY Graduate Center -- Sent via pgsql-general mailing list (pgsql-general@postgresq

[GENERAL] Connection timeouts from pgAdmin

2010-03-04 Thread Lee Hachadoorian
g lost after ~ 15-20 minutes of inactivity. Thanks, --Lee -- Lee Hachadoorian PhD Student, Geography Program in Earth & Environmental Sciences CUNY Graduate Center -- 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] Connection timeouts from pgAdmin

2010-03-04 Thread Lee Hachadoorian
eway? > > 15-20 mins sounds a lot like the typical NAT idle connection timeout... I will have to ask the network administrator and respond. Thanks, --Lee -- Lee Hachadoorian PhD Student, Geography Program in Earth & Environmental Sciences CUNY Graduate Center -- Sent via pgsql-ge

Re: [GENERAL] Connection timeouts from pgAdmin

2010-03-10 Thread Lee Hachadoorian
John, Just wanted to reply that this seems to have been the right track. Rather than change the firewall settings, our network administrator was able set postgres to send a keepalive to the client. Thanks, --Lee On Thu, Mar 4, 2010 at 5:26 PM, Lee Hachadoorian wrote: > On Thu, Mar 4, 2010 a

[GENERAL] Large Rows

2011-10-25 Thread Lee Hachadoorian
e data all in one row? If numeric types are un-TOASTable, 23k columns will necessarily break the 8k limit even if they were all smallint, correct? Regards, --Lee -- Lee Hachadoorian PhD, Earth& Environmental Sciences (Geography) Research Associate, CUNY Center for Urban Research http://freec

Re: [GENERAL] Large Rows

2011-10-26 Thread Lee Hachadoorian
On 10/26/2011 12:31 AM, David Johnston wrote: On Oct 25, 2011, at 22:17, Lee Hachadoorian wrote: I need some advice on storing/retrieving data in large rows. Invariably someone points out that very long rows are probably poorly normalized, but I have to deal with how to store a dataset

Re: [GENERAL] Large Rows

2011-10-26 Thread Lee Hachadoorian
On Wed, Oct 26, 2011 at 10:15 AM, Simon Riggs wrote: > On Wed, Oct 26, 2011 at 2:57 PM, Lee Hachadoorian > wrote: > > > Interesting. Although your example of one, 10-dimension array works, > > five hundred 2-dimension arrays does not work. I can do the SELECT, but &

[GENERAL] Significant Digits in Floating Point Datatype

2011-11-20 Thread Lee Hachadoorian
ql-general/2011-08/msg00144.php) If this is the case, what does "a precision of at least [x] digits" actually mean? And can I reliably retrieve the original integer by casting to int (or bigint) if the number of digits in the original integer is less than 15? Regards, --Lee --

Re: [GENERAL] Significant Digits in Floating Point Datatype

2011-11-20 Thread Lee Hachadoorian
On 11/20/2011 02:06 PM, Tom Lane wrote: Lee Hachadoorian writes: And can I reliably retrieve the original integer by casting to int (or bigint) if the number of digits in the original integer is less than 15? On IEEE-floating-point machines, I'd expect float8 to store integers up to 2^5

[GENERAL] JOIN column maximum

2012-01-05 Thread Lee Hachadoorian
to high). Any insight? Regards, --Lee -- Lee Hachadoorian PhD, Earth & Environmental Sciences (Geography) Research Associate, CUNY Center for Urban Research http://freecity.commons.gc.cuny.edu/

Re: [GENERAL] JOIN column maximum

2012-01-05 Thread Lee Hachadoorian
have to try to benchmark some different approaches, but for now planning on using array columns, with each "sequence" (in the Census sense, not the Postgres sense) of 200+ variables in its own array rather than its own table. --Lee -- Lee Hachadoorian PhD, Earth& Environmental S

Re: [GENERAL] JOIN column maximum

2012-01-06 Thread Lee Hachadoorian
ces into array columns. The subject tables would still be views. --Lee -- Lee Hachadoorian PhD, Earth & Environmental Sciences (Geography) Research Associate, CUNY Center for Urban Research http://freecity.commons.gc.cuny.edu/

Re: [GENERAL] DDL Triggers

2012-02-15 Thread Lee Hachadoorian
to use a DDL trigger seems like a roundabout way to get what you want when the problem is ogr2ogr. So, I would back up and ask, what are you trying to do, and what information is being lost using -append? Also, you mentioned asking this on the GDAL list, did you try the PostGIS list? --Lee

Re: [GENERAL] huge price database question..

2012-03-21 Thread Lee Hachadoorian
On Tue, Mar 20, 2012 at 11:28 PM, Jim Green wrote: > On 20 March 2012 22:57, John R Pierce wrote: > > > avg() in the database is going to be a lot faster than copying the data > into > > memory for an application to process. > > I see.. > As an example, I ran average on a 700,000 row table with

Re: [GENERAL] huge price database question..

2012-03-21 Thread Lee Hachadoorian
On Wed, Mar 21, 2012 at 12:57 PM, Andy Colson wrote: > On 3/21/2012 11:45 AM, Lee Hachadoorian wrote: > >> >> >>On 20 March 2012 22:57, John R Pierce ><mailto:pie...@hogranch.com>> wrote: >> >> > avg() in the database is going

[GENERAL] Multiple COPY statements

2012-05-10 Thread Lee Hachadoorian
;; END; 2) Is there a performance hit to doing a COPY to more than one table in the same transaction? Any other advice will be appreciated. Regards, --Lee -- Lee Hachadoorian PhD, Earth & Environmental Sciences (Geography) Research Associate, CUNY Center for Urban Research http://freecity.c

Re: [GENERAL] Multiple COPY statements

2012-05-10 Thread Lee Hachadoorian
On Thu, May 10, 2012 at 2:42 PM, Andy Colson wrote: > On 5/10/2012 1:10 PM, Lee Hachadoorian wrote: >> >> 2) Is there a performance hit to doing a COPY to more than one table >> in the same transaction? > > > No, I don't think so.  I assume you are the only

Re: [GENERAL] dblink.sql and Linux

2012-05-14 Thread Lee Hachadoorian
ot-very-obvious "Show [x] technical items" link at the bottom of the window. I would recommend using apt (command line) or Synaptic (graphical) instead of Software Center. sudo apt-get install postgresql postgresql-contrib should get you started. --Lee