Re: [GENERAL] pg_last_xact_replay_timestamp() sometimes reports unlikely, very large delays

2017-03-23 Thread John DeSoi
full. I use 'archive_timeout = 300' to send it every 5 minutes. If the lag is greater than 15 minutes, the alarm bells start going off. John DeSoi, Ph.D. -- 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] Logging broken messages

2017-02-07 Thread John DeSoi
d be on my side but I can’t > find anything on my code that doesn’t match the manual. I have written something like this recently without any problems. Maybe post the code if you think more eyes would be helpful. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] CRM where pg is a first class citizen?

2016-12-15 Thread John DeSoi
ase abstraction layer works for the most part. The main benefit of Drupal is to get a base website up and going quickly. You can then write your own custom (Postgres only) module to implement the non-core features you need. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgr

Re: [GENERAL] PDF files: to store in database or not

2016-12-08 Thread John DeSoi
re immediately written to the download stream so there is no need to have the entire document in RAM on the application side. I have included the function I use below. John DeSoi, Ph.D. create or replace function blob_content_chunked(p_dbid integer) returns setof bytea as $$ declare v_chunk i

Re: [GENERAL] PDF files: to store in database or not

2016-12-08 Thread John DeSoi
site for user access. Using Postgres has made this easy to manage and verify. And with replication we automatically have the document database available on the backup web server without additional effort. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org)

Re: [GENERAL] Syncing Data of data type BLOB into Postgres- Bytea

2016-11-15 Thread John DeSoi
without seeing the exact code you are using to insert and the exact error message you are seeing. John DeSoi, Ph.D. -- 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] PHP-Shop with PostgreSQL

2016-11-08 Thread John DeSoi
://www.drupal.org/project/ubercart John DeSoi, Ph.D. -- 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] Way to quickly detect if database tables/columns/etc. were modified?

2016-10-31 Thread John DeSoi
uld just need one function. https://www.postgresql.org/docs/current/static/event-trigger-definition.html John DeSoi, Ph.D. -- 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] Way to quickly detect if database tables/columns/etc. were modified?

2016-10-31 Thread John DeSoi
> practice). Maybe create an event trigger that updates a simple table with the last modification time or sends a notification? https://www.postgresql.org/docs/current/static/sql-createeventtrigger.html John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.o

Re: [GENERAL] yum repo, pgloader

2016-07-23 Thread John DeSoi
TREAM*. Not sure what is going on, will do some > more digging later. See https://github.com/dimitri/pgloader/issues/296 John DeSoi, Ph.D. -- 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] MediaWiki + PostgreSQL is not ready for production?

2016-07-20 Thread John DeSoi
too many problems. Since version 7 all of Drupal core works with PostgreSQL and I have encountered very few non-core modules that are MySQL specific. SQLite is also a core-supported database for Drupal. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To ma

[GENERAL] .bash_profile replaced on software updates

2016-05-21 Thread John DeSoi
amp; source /var/lib/pgsql/.pgsql_profile John DeSoi, Ph.D. -- 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] encoding confusion with \copy command

2014-09-17 Thread John DeSoi
to fix them for Postgres import. John DeSoi, Ph.D. -- 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] Async IO HTTP server frontend for PostgreSQL

2014-09-10 Thread John DeSoi
-count solutions. For some discussion and preliminary design, see also https://wiki.postgresql.org/wiki/HTTP_API John DeSoi, Ph.D. -- 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] Async IO HTTP server frontend for PostgreSQL

2014-09-10 Thread John DeSoi
I did not write the spec, so you'll have to post to the wiki to ask questions. Just thought it might be relevant for anyone interested in this topic. Best, John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] libpq - lack of support to set the fetch size

2014-03-12 Thread John DeSoi
is always executed to completion, and the row count is ignored. The possible responses to Execute are the same as those described above for queries issued via simple query protocol, except that Execute doesn't cause ReadyForQuery or RowDescription to be issued. John DeSoi, Ph.D. -- Sent via pgsql

Re: [GENERAL] streaming replication not working

2013-09-25 Thread John DeSoi
queries. I think it would be helpful for pg_standby to emit a warning if primary_conninfo is set it the recovery.conf. I changed the restore command to use cp and now everything appears to be working as expected. Thanks very much for your help and to everyone who offered suggestions. John

Re: [GENERAL] streaming replication not working

2013-09-24 Thread John DeSoi
DEBUG: got WAL segment from archive Thanks, John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] streaming replication not working

2013-09-23 Thread John DeSoi
and have verified the replication user can connect to the primary. Am I missing something obvious? Do I have to back up the primary again to make this change? Thanks, John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] streaming replication not working

2013-09-23 Thread John DeSoi
there. But even if I did not, I would expect to see a connection error in the log on the standby. No error or any indication the streaming replication process is running on the standby. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes

Re: [GENERAL] streaming replication not working

2013-09-23 Thread John DeSoi
there. But even if I did not, I would expect to see a connection error in the log on the standby. No error or any indication the streaming replication process is running on the standby. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes

Re: [GENERAL] Streaming Replication Randomly Locking Up

2013-08-16 Thread John DeSoi
of network hang and then rsync would just wait forever and never return. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] 5 is not a smallint but '5' is

2013-07-29 Thread John DeSoi
I was surprised to discover this today. I can work around it, but it seems counterintuitive. If 5 can't be parsed as a smallint, I would feel better if '5' was not one either. John DeSoi, Ph.D. psql (9.2.4) Type help for help. temp=# create or replace function itest (param smallint) returns

Re: [GENERAL] replication stops working

2013-07-09 Thread John DeSoi
; hopefully this will fix it. John DeSoi, Ph.D. 2013-07-08 21:06:02 EDT [27170]: [1-1] user=main,db=main8,remote=127.0.0.1(62194) FATAL: the database system is shutting down 2013-07-08 21:07:29 EDT [27189]: [1-1] user=postgres,db=postgres,remote=127.0.0.1(62195) FATAL: the database system

[GENERAL] replication stops working

2013-07-08 Thread John DeSoi
problems for about 12 hours. Then it just stopped and I don't see any errors in the Postgres log (primary or standby). I looked at other system logs and still don't see any problems. I'm running Postgres 9.2.4 on CentOS 6.4. Thanks for any ideas or debug suggestions. John DeSoi, Ph.D

[GENERAL] replication breaks with CentOS 6.4 upgrade

2013-05-07 Thread John DeSoi
disabling SELinux)? Thanks, John DeSoi, Ph.D. -- 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] Analyzing the types of prepared statements

2013-03-18 Thread John DeSoi
) messaged followed by describe (D), you can get a row description for the return type without executing anything. John DeSoi, Ph.D. -- 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] PHP SQL Color Syntax that is Postgresql GPL3 Compatible?

2012-04-26 Thread John DeSoi
Javascript/Ace: https://github.com/desoi/ace John DeSoi, Ph.D. -- 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] PHP SQL Color Syntax that is Postgresql GPL3 Compatible?

2012-04-25 Thread John DeSoi
monster package. Does anyone know of such a beast? TIA for any help provided. Not stand alone, but the phpPgAdmin project colors SQL/PostgreSQL code and I believe the license is GPL. http://phppgadmin.sourceforge.net/doku.php?id=start John DeSoi, Ph.D. -- Sent via pgsql-general

Re: [GENERAL] PostgreSQL 9.0 and asynchronous replication through VPN

2011-11-30 Thread John DeSoi
, or I'll need to restart Slave PostgreSQL to put it in sync again? If I restart Slave PostgreSQL, I get: Yes, it automatically catches up when the connection is working again. You should not have to restart the slave. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] PostgreSQL consulting companies in the Bay Area

2011-10-07 Thread John DeSoi
/professional_support_northamerica Best, John DeSoi, Ph.D. -- 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] Protocol question - fastpath parameter status 'S'

2011-09-05 Thread John DeSoi
://www.postgresql.org/docs/current/static/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY John DeSoi, Ph.D. -- 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] [ADMIN] Using Postgresql as application server

2011-08-16 Thread John DeSoi
://ajaxian.com/archives/tcpsocket-sockets-in-the-browser http://www.postgresql.org/docs/9.0/interactive/protocol.html I'm not saying this is the right approach, but if that is what you are really after... John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

[GENERAL] suggestions for archive_command to a remote standby

2011-08-11 Thread John DeSoi
from overwriting files, but I don't see any options for generating an error if the file exists. Anyone care to share a method or script for handling this correctly with rsync or some other common utility? Thanks! John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] OLD. || myColumnNameVar (How to generically access columns in a trigger's OLD or NEW records)

2011-04-28 Thread John DeSoi
/audit-trail table. Is there some way to loop the fields of a trigger's Record? I've read other people's frustration at not being able to get an array of fields from the Record. This might help you: http://wiki.postgresql.org/wiki/PL/pgSQL_Dynamic_Triggers John DeSoi, Ph.D. -- Sent via

Re: [GENERAL] disable triggers using psql

2011-02-17 Thread John DeSoi
, the function below can be altered to easily enable or disable them. John DeSoi, Ph.D. = create or replace function enable_link_clean_triggers(p_enable boolean) returns void as $$ declare v_action text; v_sql text; v_tg record; begin if p_enable

Re: [GENERAL] iPad and Pg revisited...

2011-01-25 Thread John DeSoi
is linked to PHP should work just fine with Postgres 9. John DeSoi, Ph.D. -- 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] iPad and Postgresql...

2011-01-17 Thread John DeSoi
nice looking native iPad/iPhone apps with the ability to perform ad-hoc queries using PostgreSQL. John DeSoi, Ph.D. -- 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] iPad and Postgresql...

2011-01-17 Thread John DeSoi
google ipad postgresql you'll see DataGlass on the first page of the results. I'm sure you'll also find some with a search in the app store. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org

Re: [GENERAL] iPad and Postgresql...

2011-01-17 Thread John DeSoi
a problem replicating my production environments whether in Solaris or Linux. It does not blow anything away as far as I can tell :). Yes, I tried MacPorts. I seemed get caught in some kind of dependency hell and could not get things to update correctly. John DeSoi, Ph.D. -- Sent via pgsql

Re: [GENERAL] Need magic for identifieing double adresses

2010-09-17 Thread John DeSoi
FOUNTAINS OF ROME FOUNTAINS OF ROME A/K/A FONTANE DI ROMA Trigrams can be indexed, so it is relatively fast to find an initial set of candidates. There is a nice introductory article here: http://www.postgresonline.com/journal/categories/59-pgtrgm John DeSoi, Ph.D. -- Sent via pgsql-general

Re: [GENERAL] No PL/PHP ? Any reason?

2010-06-23 Thread John DeSoi
are working on PL/Parrot. I'd really like to have PHP and Lisp for PL languages :). John DeSoi, Ph.D. -- 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] Hosting Account with PostgreSQL and PHP?

2010-02-15 Thread John DeSoi
this? I have a reseller account and I have created many triggers using pl/pgsql. Are you wanting to create triggers with C or some other language that requires superuser access? John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] Hosting Account with PostgreSQL and PHP?

2010-02-15 Thread John DeSoi
have access via phpPgAdmin which can create functions and triggers. Your account user owns the databases you create, so I don't see how they can prevent you from creating triggers. They have a 30 day money back guarantee, so it might be worth trying out. John DeSoi, Ph.D. -- Sent via

Re: [GENERAL] Hosting Account with PostgreSQL and PHP?

2010-02-14 Thread John DeSoi
. But if you need to create triggers with SQL or pl/pgsql, that should not be a problem. Of course, many offer VPS hosting where you could setup Postgres yourself and configure it any way you like. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

Re: [GENERAL] Hosting Account with PostgreSQL and PHP?

2010-02-14 Thread John DeSoi
an account with HostNine.com, but PostgreSQL version is 8.1 and don't allow triggers... I must to change host, the web app is using triggers... Anyone know a host that have triggers available? Best Regards, On Sun, Feb 14, 2010 at 3:34 PM, John DeSoi de...@pgedit.com wrote: On Feb 13

Re: [GENERAL] how do I disable automatic start on mac os x?

2010-01-04 Thread John DeSoi
like support was dropped a few months ago. Hopefully some one else will pick it up. http://sourceforge.net/projects/lingon/ John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql

Re: [GENERAL] Extended Query, flush or sync ?

2009-12-21 Thread John DeSoi
- it really helped me to look at the psql source. John DeSoi, Ph.D. -- 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] Extended Query, flush or sync ?

2009-12-21 Thread John DeSoi
on the connection stream to receive the responses. John DeSoi, Ph.D. -- 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] Extended Query, flush or sync ?

2009-12-20 Thread John DeSoi
write and read. You get the safety of parameterized execution and you don't have a prepared statement to dispose of in another operation. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org

Re: [GENERAL] Extended Query using the Frontend/Backend Protocol 3.0

2009-12-17 Thread John DeSoi
-byte p stream) (write-int32 (+ int32-length (length name) 1 (length sql-string) 1 int16-length (* int32-length param-count)) stream) (write-cstring name stream) (write-cstring sql-string stream) (write-int16 param-count stream) John DeSoi, Ph.D. -- Sent via pgsql-general mailing list

Re: [GENERAL] Need full search text on a shared hosting web site using 8.1.x

2009-11-16 Thread John DeSoi
to an older shared server. I know they used to have contrib tsearch installed with older versions. http://www.a2hosting.com/services/web-hosting/ John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] postgresql installation problems

2009-11-13 Thread John DeSoi
, or (depending on your platform) there is probably some easy port forwarding trick where you can have one cluster but two possible ports. Installing two clusters means running initdb for two different directories and configuring them for different ports. John DeSoi, Ph.D. -- Sent via pgsql-general

Re: [GENERAL] MD5 Authentication

2009-11-05 Thread John DeSoi
when the user or database name has non-ascii characters. The client encoding is not established until after authentication. I asked about that a while ago but did not get any responses. http://archives.postgresql.org/pgsql-general/2008-12/msg00808.php John DeSoi, Ph.D. -- Sent via

Re: [GENERAL] Cancelling Requests Frontend/Backend Protocol TCP/IP

2009-11-02 Thread John DeSoi
cursor but still have the first 1000 rows for immediate display to the end user. John DeSoi, Ph.D. -- 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] Cancelling Requests Frontend/Backend Protocol TCP/IP

2009-11-02 Thread John DeSoi
to test this out is to call pg_sleep with a big number and then cancel the query on another connection. You won't have to worry about the timing of receiving all rows or not. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] Implementing Frontend/Backend Protocol TCP/IP

2009-10-27 Thread John DeSoi
a massive result set or somehow parsing the query to add a limit clause. John DeSoi, Ph.D. -- 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] Implementing Frontend/Backend Protocol TCP/IP

2009-10-27 Thread John DeSoi
protocol has changed since version 7.4. All data can be in text format; you don't have to deal with binary. I have implemented an interface in Lisp. I found it much easier and more flexible than the foreign function interface with C and libpq. John DeSoi, Ph.D. -- Sent via pgsql-general

Re: [GENERAL] edit function

2009-09-07 Thread John DeSoi
above, but replace the first line with: CREATE OR REPLACE FUNCTION f_active_client(character varying) John DeSoi, Ph.D. -- 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 starting pgsql server on Mac OS X. Pg_hba.conf reading permission.

2009-08-31 Thread John DeSoi
John DeSoi, Ph.D. -- 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] join from array or cursor

2009-08-22 Thread John DeSoi
Sort Method: quicksort Memory: 297kB - Function Scan on cursor_pk_order c (cost=0.00..260.00 rows=1000 width=8) (actual time=12.672..13.073 rows=4308 loops=1) Total runtime: 51.886 ms Thanks for any further suggestions. John DeSoi, Ph.D. -- Sent via pgsql-general

Re: [GENERAL] join from array or cursor

2009-08-21 Thread John DeSoi
. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] join from array or cursor

2009-08-20 Thread John DeSoi
it should be easy, but I'm not seeing it. Thanks, John DeSoi, Ph.D. -- 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] Information about columns

2009-06-22 Thread John DeSoi
: http://www.postgresql.org/docs/8.3/static/protocol-message-formats.html John DeSoi, Ph.D. -- 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] Information about columns

2009-06-22 Thread John DeSoi
. For example, instead of using int in CREATE TYPE above, create a your own type equivalent to an integer. John DeSoi, Ph.D. -- 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] looping over a small record set over and over in a function

2009-06-20 Thread John DeSoi
, or composite type. So maybe you could define a composite type and stuff those into a single array? John DeSoi, Ph.D. -- 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] connecting to a remote pq always require a password

2009-06-18 Thread John DeSoi
making this change? pg_ctl reload -D /path/to/your/data John DeSoi, Ph.D. -- 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] Best way to monitor, control, or rewrite data definition commands?

2009-05-12 Thread John DeSoi
that ensures there is foo_audit for table foo? John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] converting from bytea to integers

2009-04-20 Thread John DeSoi
enough using to_hex. Thanks for any suggestions, John DeSoi, Ph.D. -- 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] converting from bytea to integers

2009-04-20 Thread John DeSoi
) + (b2 16) + (b3 8) + b4; Thanks, John DeSoi, Ph.D. -- 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 text search strategy for names

2009-04-18 Thread John DeSoi
of the text, try select to_tsvector('simple', 'claude Jones'); to_tsvector -- 'jones':2 'claude':1 John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref

Re: [GENERAL] Question Concerning PostgreSQL license.

2009-03-17 Thread John DeSoi
, at no cost? You can use PostgreSQL legally at no cost. There is no requirement to purchase any kind of license for commercial (or non-commercial) purposes. John DeSoi, Ph.D. - Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription

Re: [GENERAL] grant everything on everything and then revoke

2009-03-03 Thread John DeSoi
add a new table, sequence, schema... There is some pl/pgsql code here grant on more than one object at a time: http://pgedit.com/tip/postgresql/access_control_functions John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] Function parameter

2009-02-24 Thread John DeSoi
declare and assign the value in a single line in the DECLARE section of the function, e.g. text_var text := text_param; John DeSoi, Ph.D. -- 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] Pet Peeves?

2009-02-04 Thread John DeSoi
or detecting DDL changes. John DeSoi, Ph.D. -- 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] encoding of PostgreSQL messages

2008-12-23 Thread John DeSoi
an encoding? John DeSoi, Ph.D. -- 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] tsearch2 problem

2008-10-31 Thread John DeSoi
. John DeSoi, Ph.D. -- 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] [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

2008-10-28 Thread John DeSoi
. John DeSoi, Ph.D. -- 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] Drupal and PostgreSQL - performance issues?

2008-10-13 Thread John DeSoi
they completely abstracted the schema building API. Previously, MySQL and PostgreSQL had to be specified separately which is the main reason a lot of modules did not work with PostgreSQL. Things should improve as modules are upgraded to Drupal 6. John DeSoi, Ph.D. -- Sent via pgsql

Re: [GENERAL] Drupal and PostgreSQL - performance issues?

2008-10-12 Thread John DeSoi
MySQL to PostgreSQL because of MyISAM data corruption and InnoDB was too slow. http://groups.drupal.org/node/15793 John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql

Re: [GENERAL] psql scripting tutorials

2008-09-10 Thread John DeSoi
``, e.g. = \echo `date` Wed Sep 10 08:07:19 EDT 2008 John DeSoi, Ph.D. -- 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] looking for psql without server-installation

2008-08-06 Thread John DeSoi
. John DeSoi, Ph.D. -- 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] Fresh install on Mac OS 10.5.4

2008-08-02 Thread John DeSoi
On Aug 2, 2008, at 7:13 PM, Manoj Patwardhan wrote: bash-3.2$ initdb -D /usr/local/pgsql/data dyld: Library not loaded: /usr/local/pgsql/lib/libpq.4.dylib Referenced from: /usr/local/bin/initdb Reason: image not found Trace/BPT trap Any ideas? This is on Mac OS 10.5.4. What I see in

Re: [GENERAL] A couple of newbie questions ...

2008-07-25 Thread John DeSoi
the default value of zero. But if you include NULL in your insert list -- you'll get NULL, not zero. If nothing is included for the column in your insert list, you'll get the column default if it has one, otherwise NULL. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql

Re: [GENERAL] mac install question

2008-07-24 Thread John DeSoi
@executable_path/../lib/libpq.dylib psql John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] changing text search treatment of puncutation

2008-07-02 Thread John DeSoi
to change '/' to be treated like '-' ? I've looked over the documentation several times and could not find anything. Even just a way to get the two tokens 'home' and 'work' without the joined form would be helpful. Thanks, John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql

Re: [GENERAL] bytea case sensitivity

2008-05-21 Thread John DeSoi
number of messages to search. John DeSoi, Ph.D. -- 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 importing dbf file into postgresql using navicat on mac OS X

2008-05-15 Thread John DeSoi
is really broken (invalid sequences no mater how it is encoded) then you'll need to fix that first. John DeSoi, Ph.D. -- 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] Schema migration tools?

2008-04-22 Thread John DeSoi
if PostgreSQL had some kind of unique reference for the column, but I think columns are just numbered sequentially as they are added. It would also be neat to have a built-in way to log the schema changes. John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

Re: [GENERAL] Schema migration tools?

2008-04-22 Thread John DeSoi
back. Correct? Thanks, John DeSoi, Ph.D. -- 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 John DeSoi
was using the execute because I had a variable called the same as a field, not good, I changed it. So now it's working perfectly!!! You don't need SELECT at all: INSERT INTO demo_tab VALUES (demo_tab_row.*); John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general

[GENERAL] psql /usr/lib/libgcc dependency in pg 8.3

2008-03-26 Thread John DeSoi
to build a binary that will run on 10.3 and I don't think it has /usr/lib/libgcc. Thanks, John DeSoi, Ph.D. -- 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] psql /usr/lib/libgcc dependency in pg 8.3

2008-03-26 Thread John DeSoi
disk, but it's not installed by default. OK, so it is really and XCode issue and nothing that changed with 8.3. Thanks, John DeSoi, Ph.D. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql

Re: [GENERAL] Storing images as BYTEA or large objects

2008-02-14 Thread John DeSoi
the schema below and a simple prepared statement API (http://pgedit.com/resource/php/pgfuncall ), I can insert/load documents with a single line like: $db-blob_insert($content); $content = $db-blob_content($this-object_ref); John DeSoi, Ph.D. -- -- blobs -- create table blob ( dbid

Re: [GENERAL] PostgreSQL/PHP Application Server

2008-02-04 Thread John DeSoi
On Feb 2, 2008, at 9:40 PM, Brian A. Seklecki (Mobile) wrote: On Thu, 2008-01-24 at 13:10 -0500, John DeSoi wrote: . The user/login system is extensible, so you could write your own. I'm not sure if I follow: Are you suggestion that the CMS system, Drupal, is an example of an application

Re: [GENERAL] PostgreSQL/PHP Application Server

2008-01-24 Thread John DeSoi
is extensible, so you could write your own. John DeSoi, Ph.D. ---(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] Postgres from PHP in Leopard

2007-12-20 Thread John DeSoi
problems. http://www.entropy.ch/software/macosx/php/ John DeSoi, Ph.D. ---(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

Re: [GENERAL] Verison 8.3 PL/pgSQL debugger Question

2007-11-12 Thread John DeSoi
. Korry posted a more detailed example here (which was to be added to the readme file): http://archives.postgresql.org/pgsql-hackers/2007-09/msg00241.php John DeSoi, Ph.D. ---(end of broadcast)--- TIP 5: don't forget to increase your free

Re: [GENERAL] reporting tools

2007-08-22 Thread John DeSoi
Mac application. John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] Non-superuser creating a flat file

2007-08-17 Thread John DeSoi
create your function using the SECURITY DEFINER option? http://www.postgresql.org/docs/8.2/interactive/sql-createfunction.html John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL ---(end of broadcast)--- TIP 4: Have you searched

  1   2   3   4   >