Re: [GENERAL] pg on Debian servers

2017-11-13 Thread Mark Morgan Lloyd
On 12/11/17 19:15, Karsten Hilbert wrote: On Sat, Nov 11, 2017 at 01:03:18PM +, Mark Morgan Lloyd wrote: Several legacy programs written in Delphi ground to a halt this morning, which turned out to be because a Debian system had updated its copy of PostgreSQL and restarted the server

Re: [GENERAL] pg on Debian servers

2017-11-11 Thread Mark Morgan Lloyd
On 11/11/17 16:45, Jan Claeys wrote: On Sat, 2017-11-11 at 14:23 +, Mark Morgan Lloyd wrote: I think that the "preventing upgrades" route is the one to follow, since inhibiting the restart would obviously present a risk that something loaded dynamically could get out of step. As a

Re: [GENERAL] pg on Debian servers

2017-11-11 Thread Mark Morgan Lloyd
puts a file in there and then ignores both it and the associated control in /etc/default. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To

[GENERAL] pg on Debian servers

2017-11-11 Thread Mark Morgan Lloyd
Or since I'm almost certainly not the first person to be bitten by this, is there a preferred hack in mitigation? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing lis

Systemd support (was:Re: [GENERAL] Please say it isn't so)

2017-07-12 Thread Mark Morgan Lloyd
h the underlying platform would have been very much to PostgreSQL's disadvantage, OP: Please note that you do yourself no favours at all by posting a subject line which could very easily be misinterpreted as spam. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [GENERAL] PostgreSQL on eMMC - Corrupt file system

2017-02-10 Thread Mark Morgan Lloyd
titioning it to make absolutely sure that the internal controller has touched every block. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To

Re: [GENERAL] Regrding:- Arduino-Postgresql Direct Connection

2016-12-13 Thread Mark Morgan Lloyd
n unavoidable need to use Arduino "shields" there's an interface called the Raspduino which would help. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general m

[GENERAL] PostgreSQL and ArcGIS used in UK military exercise

2016-10-30 Thread Mark Morgan Lloyd
Potentially useful publicity. http://www.theregister.co.uk/2016/10/28/unmanned_warrior_esri_argcis_cloud_based_mapping/ -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing

Re: [GENERAL] postgres driver for mysql

2016-09-11 Thread Mark Morgan Lloyd
#x27;t given us a URL or told us the name of the module. Can anyone suggest a db federeted plugin for mysql/mariadb to store data in pg. Changing applications is impossible, they are proprietary and work only with specific databases only. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT

Re: [GENERAL] Stored procedure version control

2016-07-03 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Elsewhere, somebody was asking how people implemented version control for stored procedures on (MS) SQL Server. The consensus was that this is probably best managed by using scripts or command files to generate stored procedures etc., but does anybody have any

Re: [GENERAL] Stored procedure version control

2016-06-30 Thread Mark Morgan Lloyd
Mike Sofen wrote: -Original Message- From: Mark Morgan Lloyd Sent: Thursday, June 30, 2016 2:41 AM Neil Anderson wrote: On 2016-06-29 12:37 PM, Mark Morgan Lloyd wrote: Elsewhere, somebody was asking how people implemented version control for stored procedures on (MS) SQL

Re: [GENERAL] Stored procedure version control

2016-06-30 Thread Mark Morgan Lloyd
Neil Anderson wrote: On 2016-06-29 12:37 PM, Mark Morgan Lloyd wrote: Elsewhere, somebody was asking how people implemented version control for stored procedures on (MS) SQL Server. The consensus was that this is probably best managed by using scripts or command files to generate stored

[GENERAL] Stored procedure version control

2016-06-29 Thread Mark Morgan Lloyd
PostgreSQL? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/

[GENERAL] System aggregation

2016-04-05 Thread Mark Morgan Lloyd
something called Virtual Iron (possibly based on Xen), but it was swallowed by Oracle where it was under the wing of Wim Coekaerts who I believe has just joined Microsoft. Has anybody ever experimented with PostgreSQL on this sort of thing, and is anybody aware of an open equivalent? -- Mark Morgan

Re: [GENERAL] PostgreSQL advocacy

2016-03-25 Thread Mark Morgan Lloyd
Jernigan, Kevin wrote: On 3/25/16, 4:37 AM, "pgsql-general-ow...@postgresql.org on behalf of Mark Morgan Lloyd" wrote: Just because a corporate has a hundred sites cooperating for inventory management doesn't mean that the canteen menus have to be stored on Oracle RAC :-

Re: [GENERAL] PostgreSQL advocacy

2016-03-25 Thread Mark Morgan Lloyd
has a hundred sites cooperating for inventory management doesn't mean that the canteen menus have to be stored on Oracle RAC :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-gene

[GENERAL] PostgreSQL advocacy

2016-03-21 Thread Mark Morgan Lloyd
ation of developers etc.) can in no way be interpreted as meaning that the technology is not unavailable or unreliable. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailin

Re: [GENERAL] "Web of trust" connections

2015-11-10 Thread Mark Morgan Lloyd
Jim Nasby wrote: On 11/6/15 8:01 AM, Mark Morgan Lloyd wrote: Purely out of curiosity, is there any way of using some sort of "web of trust" (comparable with GPG or whatever) when verifying server and client certificates, rather than going back to a centralised CA? My apologies if

[GENERAL] "Web of trust" connections

2015-11-06 Thread Mark Morgan Lloyd
new server and get it cooperating with the rest, and some sort of WoT might be plausible rather than having to wait for the root administrator to send keys over a secure channel. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his emp

Re: [GENERAL] Red Hat Policies Regarding PostgreSQL

2015-10-28 Thread Mark Morgan Lloyd
use it or not. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- 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] Listen/notify, equivalents on other DBs

2015-09-28 Thread Mark Morgan Lloyd
Thomas Kellerer wrote: Mark Morgan Lloyd schrieb am 25.09.2015 um 23:41: I'm trying to get support for PostgreSQL's listen/notify into a development environment, but since it supports multiple database backends: can anybody comment on how many other servers have a comparable facility

[GENERAL] Listen/notify, equivalents on other DBs

2015-09-25 Thread Mark Morgan Lloyd
rbase, but I'm not in a position to investigate Oracle, IBM, MS and the rest. I'd appreciate any general comments from somebody who has broad SQL experience, I'm not asking for example code. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author'

Re: [GENERAL] [pg_hba.conf] publish own Python application using PostgreSQL

2015-07-06 Thread Mark Morgan Lloyd
I think part of the question is what the "true Debian way" is to massage the configuration files to include appropriate entries. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-

[GENERAL] [No subject]

2015-03-31 Thread Mark Morgan Lloyd
-- 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] PL/R etc.

2013-05-10 Thread Mark Morgan Lloyd
Merlin Moncure wrote: On Fri, May 10, 2013 at 2:32 PM, Mark Morgan Lloyd wrote: Merlin Moncure wrote: On Fri, May 10, 2013 at 4:41 AM, Mark Morgan Lloyd wrote: I don't know whether anybody active on the list has R (and in particular PL/R) experience, but just in case... :-) i) Some

Re: [GENERAL] PL/R etc.

2013-05-10 Thread Mark Morgan Lloyd
Merlin Moncure wrote: On Fri, May 10, 2013 at 4:41 AM, Mark Morgan Lloyd wrote: I don't know whether anybody active on the list has R (and in particular PL/R) experience, but just in case... :-) i) Something like APL can operate on an array with minimal regard for index order

[GENERAL] PL/R etc.

2013-05-10 Thread Mark Morgan Lloyd
Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- 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] libpq thread safety

2012-12-27 Thread Mark Morgan Lloyd
Tom Lane wrote: Mark Morgan Lloyd writes: Do any special precautions need to be taken when PQNotifies is being called, to make sure that nothing else is referencing the handle? It's pretty much the same as any other operation on a PGconn: if there could be more than one thread touchin

[GENERAL] libpq thread safety

2012-12-27 Thread Mark Morgan Lloyd
(GUI) timer is asynchronously polling for notifications. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscrip

Re: [GENERAL] Trouble with PQnotifies()

2012-12-14 Thread Mark Morgan Lloyd
s reliable. Please also pardon me for asking inappropriate questions like this one. As far as I can recall, every issue I encountered before always finally proved that PostgreSQL is flawless. But at least it demonstrates that somebody's using that facility. -- Mark Morgan Lloyd markML

Re: [GENERAL] Installing minimal client libraries on Windows

2012-12-07 Thread Mark Morgan Lloyd
Albe Laurenz wrote: Mark Morgan Lloyd wrote: Apologies for this old chestnut, but I think it's a question more often asked than answered. If I want to install a minimal binary libpq.dll on a non-developer machine to support Lazarus/FPC programs, where do I get it? I definitely don'

Re: [GENERAL] libpq - prevent automatic reconnect

2012-12-07 Thread Mark Morgan Lloyd
I'm definitely not saying that it's a Postgres issue. I've tried forcing random connection drops at the application level in the past and have never been able to characterise the problem. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author

[GENERAL] Installing minimal client libraries on Windows

2012-12-06 Thread Mark Morgan Lloyd
server, or to build from source. I'd rather not give them pgadmin or psql. I'd prefer not to install ODBC since I need to get at listen/notify that it doesn't support. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [GENERAL] Looking for ODBC drivers for NT4.

2012-08-28 Thread Mark Morgan Lloyd
odbc.msi of the appropriate version. You might also need a separate MDAC installer. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To

[GENERAL] Adding users connection via SSL

2012-07-27 Thread Mark Morgan Lloyd
es one authenticated by password? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.post

Re: [GENERAL] Terminating a rogue connection

2012-07-27 Thread Mark Morgan Lloyd
Chris Angelico wrote: On Fri, Jul 27, 2012 at 7:09 PM, Mark Morgan Lloyd wrote: Chris Angelico wrote: On Fri, Jul 27, 2012 at 6:27 PM, Mark Morgan Lloyd wrote: Assuming a *nix server: if a monitoring program determines that an established connection appears to be trying to so something

Re: [GENERAL] Switching from OSX to Linux, multi-line queries in \copy don't work anymore

2012-07-27 Thread Mark Morgan Lloyd
lect * from pg_settings) to '/tmp/settings.csv' with csv header; \copy: parse error at "select" markMLl=> However my psql and server are rather old which could be an issue (8.1.19 to server 8.4 if I recall correctly). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinio

Re: [GENERAL] Terminating a rogue connection

2012-07-27 Thread Mark Morgan Lloyd
Chris Angelico wrote: On Fri, Jul 27, 2012 at 6:27 PM, Mark Morgan Lloyd wrote: Assuming a *nix server: if a monitoring program determines that an established connection appears to be trying to so something inappropriate, what's the best way of terminating that session rapidly? s

[GENERAL] Terminating a rogue connection

2012-07-27 Thread Mark Morgan Lloyd
Assuming a *nix server: if a monitoring program determines that an established connection appears to be trying to so something inappropriate, what's the best way of terminating that session rapidly? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author&#

Re: [GENERAL] timestamps, formatting, and internals

2012-06-03 Thread Mark Morgan Lloyd
f Time calculation is good to something like 250mSec so that's the limit of your accuracy, but as soon as you start taking refraction and atmospheric turbulence into account- even with the Sun high above the horizon- you're going to degrade that. -- Mark Morgan Lloyd markMLl .

Re: [GENERAL] Libpq question

2012-06-01 Thread Mark Morgan Lloyd
t;roll your own" interface library, the libpq+pg combination has been in use for 10+ years, is actively maintained, and (hopefully) is bug- and backdoor-free. Reinventing this particular wheel is definitely not something that should be approached casually. -- Mark Morgan Lloyd markMLl .AT. t

Re: [GENERAL] Listen and Notify

2012-05-01 Thread Mark Morgan Lloyd
s in a development framework which isolates you from the low-level handles etc. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To

Re: [GENERAL] PostgreSQL DBA in SPAAAAAAAACE

2011-12-12 Thread Mark Morgan Lloyd
ing "confirm your account" type emails will can it. I suspect that we're supposed to do this every day- I'm sure that Certain Corporates will have no compunction at using multiple votes. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the autho

[GENERAL] Listen/notify and ODBC

2011-08-19 Thread Mark Morgan Lloyd
r the years: if anybody still has this example do you think you could post a URL where it might be found? My apologies for posting this here as well as in the ODBC ML. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or

Re: [GENERAL] Per-query local timezone

2011-06-14 Thread Mark Morgan Lloyd
Steve Crawford wrote: On 06/14/2011 05:13 AM, Mark Morgan Lloyd wrote: Karsten Hilbert wrote: On Tue, Jun 14, 2011 at 09:40:20AM +, Mark Morgan Lloyd wrote: Is it possible to incorporate SET TIMEZONE into a query, so that to_char(...'TZ') etc. is appropriately localised? Y

Re: [GENERAL] Per-query local timezone

2011-06-14 Thread Mark Morgan Lloyd
Tom Lane wrote: John R Pierce writes: On 06/14/11 2:40 AM, Mark Morgan Lloyd wrote: The development environment I'm working with uses short-lifetime sessions, and it's proving difficult to get a set command and a query associated with the same handle. this environment doesn

Re: [GENERAL] Per-query local timezone

2011-06-14 Thread Mark Morgan Lloyd
Karsten Hilbert wrote: On Tue, Jun 14, 2011 at 09:40:20AM +, Mark Morgan Lloyd wrote: Is it possible to incorporate SET TIMEZONE into a query, so that to_char(...'TZ') etc. is appropriately localised? You seem to want "AT TIME ZONE". Thanks for that. How can I do /t

[GENERAL] Per-query local timezone

2011-06-14 Thread Mark Morgan Lloyd
me handle. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- 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] ZEOS or PGDAC - How to lock a resource?

2011-05-06 Thread Mark Morgan Lloyd
one of the best postgres drivers ever written!) I don't use Zeos, but a few months ago I was using listen/notify via FPC's standard classes to good effect so I'd be surprised if there were any problems. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are t

Re: [GENERAL] Postgresql, PSN hack and table limits

2011-05-02 Thread Mark Morgan Lloyd
Greg Smith wrote: On 05/01/2011 01:50 AM, Mark Morgan Lloyd wrote: Somebody is making a very specific claim that Postgres can support a limited number of rows Did you find this via http://www.reversecurity.com/2011/04/new-details-from-psn-hack.html ? That was the only Google-indexed source

Re: [GENERAL] Postgresql, PSN hack and table limits

2011-05-01 Thread Mark Morgan Lloyd
Tom Lane wrote: Jasen Betts writes: On 2011-05-01, Mark Morgan Lloyd wrote: Somebody is making a very specific claim that Postgres can support a limited number of rows: "INPS (a data forensics team) said that there is 7 main Databases all hosted at different data centers but linked o

Re: [GENERAL] Postgresql, PSN hack and table limits

2011-05-01 Thread Mark Morgan Lloyd
Magnus Hagander wrote: On Sun, May 1, 2011 at 07:50, Mark Morgan Lloyd wrote: Somebody is making a very specific claim that Postgres can support a limited number of rows: "INPS (a data forensics team) said that there is 7 main Databases all hosted at different data centers but linked o

[GENERAL] Postgresql, PSN hack and table limits

2011-04-30 Thread Mark Morgan Lloyd
the most amount of data each database could hold with no stability issues is aproximitely equal to that of 10,348,439 Rows" http://pastebin.com/MtX1MDdh Does anybody have any idea where they've got hold of this figure? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinio

Re: [GENERAL] Getting the name of the timezone, adjusted for daylight saving

2011-01-27 Thread Mark Morgan Lloyd
one setting. But out of curiosity will (ii) also mess up extract(epoch ...), or will that consistently return the number of UTC seconds rather than adjusting for the local timezone? If it does, is there a "right" way of restricting the scope of a timezone change to a single function

Re: [GENERAL] Getting the name of the timezone, adjusted for daylight saving

2011-01-26 Thread Mark Morgan Lloyd
Tom Lane wrote: Mark Morgan Lloyd writes: SELECT to_char(('2011-03-01 12:00' AT TIME ZONE 'GMT0BST')::TIMESTAMP WITH TIME ZONE, 'HH24:MI TZ'); to_char --- 12:00 GMT (1 row) You haven't said exactly what you were hoping to accomplish, but I su

[GENERAL] Getting the name of the timezone, adjusted for daylight saving

2011-01-26 Thread Mark Morgan Lloyd
e, how can I get TZ indicating whether daylight saving is in effect? Alternatively, is there a flag I can retrieve indicating that a timestamp has been corrected for DST so that I can select an alternative name for display? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

Re: [GENERAL] Getting current and average on a single row

2010-11-24 Thread Mark Morgan Lloyd
Adrian Klaver wrote: On Wednesday 24 November 2010 1:08:27 am Mark Morgan Lloyd wrote: What is best practice when extracting both current and average from a table? Demonstration table here contains data from a cheap weather station. I can obviously get the current reading like this: select

[GENERAL] Getting current and average on a single row

2010-11-24 Thread Mark Morgan Lloyd
How are these best merged to yield a single row? Some form of join, or window functions? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

Re: [GENERAL] Best practice for file storage?

2010-01-31 Thread Mark Morgan Lloyd
using PostgreSQL in this way for their raw data? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscrip

Re: [GENERAL] Help me about postgreSql code

2010-01-22 Thread Mark Morgan Lloyd
pierce', 'John', >>> 'Pierce'), ('104', 'elaura', 'Elian', 'Laura'); >>> >>> SELECT username,firstname,lastname FROM users WHERE uid=103; If you think about it one of those statements is giving the system

Re: [GENERAL] Server name in psql prompt

2010-01-09 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I thought earlier that I could use finger as a hack for querying the server, i.e. I could put e.g. a disc set name in /home/postgres/.plan. However I then realised that I'd need %M to be expanded before %`, so that I could do something like \set PROMPT1 &#x

Re: [GENERAL] Server name in psql prompt

2010-01-08 Thread Mark Morgan Lloyd
[ and %]. Multiple pairs of these can occur within the prompt. For example: testdb=> \set PROMPT1 '%[%033[1;33;40m%...@%/%R%[%033[0m%]%# ' results in a boldfaced (1;) yellow-on-black (33;40) prompt on VT100-compatible, color-capable terminals. Thanks, noted. -- Mark Morgan Lloy

Re: [GENERAL] Server name in psql prompt

2010-01-08 Thread Mark Morgan Lloyd
hubert depesz lubaczewski wrote: On Fri, Jan 08, 2010 at 11:20:36AM +, Mark Morgan Lloyd wrote: Is there any way of getting psql to display the name of the currently-connected server in its prompt, and perhaps a custom string identifying e.g. a disc set, without having to create a psqlrc

[GENERAL] Server name in psql prompt

2010-01-08 Thread Mark Morgan Lloyd
sing down every psql binary that's been installed on the LAN in an attempt to protect users from self-harm: far nicer if the default psql prompt could be loaded from the server. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those

Re: [GENERAL] Updating from 8.2 to 8.4

2009-12-26 Thread Mark Morgan Lloyd
appear to have) fixed it: the app was a scheduler running on a Windows system and contained a lot of pathnames with backslashes hence standard_conforming_strings = on. I'll play with the new system for a few days and if all goes well try to migrate on New Year's Day. -- Mark Morgan L

Re: [GENERAL] Updating from 8.2 to 8.4

2009-12-25 Thread Mark Morgan Lloyd
de is robust against the new server and then decide on an upgrade schedule. I'm building from scratch here so all options are as default except for added Perl. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or

Re: [GENERAL] Updating from 8.2 to 8.4

2009-12-25 Thread Mark Morgan Lloyd
Adrian Klaver wrote: On Thursday 24 December 2009 11:20:35 am Mark Morgan Lloyd wrote: I was hoping to finally get the servers updated from 8.2 to 8.4 over the festive season, but by now I think I've left things too tight. Is it necessary to update the (Windows) ODBC driver as well? I

[GENERAL] Updating from 8.2 to 8.4

2009-12-24 Thread Mark Morgan Lloyd
from the app side but is there anything obvious that I've missed? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to you

Re: [GENERAL] Forms generator ?

2009-11-01 Thread Mark Morgan Lloyd
ebian i386, problems on SPARC and PPC (form creation wizard broken, ODBC suspect) but I've not had time to investigate properly. To do the job properly I'd be using Lazarus. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of hi

Re: [GENERAL] CREATE TABLE LIKE and SERIAL

2009-10-30 Thread Mark Morgan Lloyd
LIKE would be appropriate here? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- 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] CREATE TABLE LIKE and SERIAL

2009-10-30 Thread Mark Morgan Lloyd
On Fri, Oct 30, 2009 at 8:44 AM, Mark Morgan Lloyd wrote: What is the "correct" behavior of a serial column when a table is created with LIKE? The manual is silent on this. What appears to be happening with 8.2 is that the column in the new table refers to the original sequence

[GENERAL] CREATE TABLE LIKE and SERIAL

2009-10-30 Thread Mark Morgan Lloyd
What is the "correct" behavior of a serial column when a table is created with LIKE? The manual is silent on this. What appears to be happening with 8.2 is that the column in the new table refers to the original sequence generator. -- Mark Morgan Lloyd markMLl .AT. telemetry.c

Re: [GENERAL] Delphi connection ?

2009-09-30 Thread Mark Morgan Lloyd
always leave yourself a way that you can extract a representative query after any parameterisation and do an EXPLAIN to look for inefficiencies. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via

Re: [GENERAL] Delphi connection ?

2009-09-30 Thread Mark Morgan Lloyd
--- Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland r...@iol.ie Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals -- I trust you've investigated Lazarus? -- Mark Morgan Lloyd markMLl .AT. tel

Re: [GENERAL] Delphi connection ?

2009-09-29 Thread Mark Morgan Lloyd
27;d recommend using libpq direct. I have using an older Delphi (v3), ODBC itself I believe was fine but the BDE layer introduced problems- apps needed to be rebooted evey month or so. Note that ODBC doesn't easily support any non-standard facilities, e.g. listen/notify. -- Mark

[GENERAL] Intermediate values and unprivileged users

2009-09-24 Thread Mark Morgan Lloyd
anguage. Is there a "good" way to get round this? Server is 8.2 on Linux x86, queries from psql. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- 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] Favorite Tom Lane quotes

2008-12-10 Thread Mark Morgan Lloyd
stgreSQL server. IIRC There were still hooks for it in v6 although they've since been removed. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-genera

[GENERAL] Getting text into a table

2008-12-10 Thread Mark Morgan Lloyd
b. Does anybody have any suggestions for tools well-matched to this sort of problem, i.e. that can match patterns, store matched patterns or update counters, backtrack where necessary, and so on? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's,

Re: [GENERAL] PostgreSQL and eval()

2008-12-10 Thread Mark Morgan Lloyd
Richard Huxton wrote: Mark Morgan Lloyd wrote: Alternatively I appreciate that I could use PL/pgSQL but that would assume that if I sent the sequence of operations to somebody else that he also had it compiled into his server. Well, pl/pgsql has been automatically included in all recent

[GENERAL] PostgreSQL and eval()

2008-12-10 Thread Mark Morgan Lloyd
ce of operations to somebody else that he also had it compiled into his server. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

Re: [GENERAL] server install recommendations?

2008-10-18 Thread Mark Morgan Lloyd
same model but certainly using the same drive hardware, PSUs etc. If your boss won't spend the sort of money that these machines go for on eBay then your company isn't serious about running a service for its customers. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

Re: [GENERAL] Numbering rows

2008-10-16 Thread Mark Morgan Lloyd
by a bit of maths, that's likely to be a big incentive for an upgrade when it comes out. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgres

Re: [GENERAL] Numbering rows

2008-10-15 Thread Mark Morgan Lloyd
ed access. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- 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] Numbering rows

2008-10-15 Thread Mark Morgan Lloyd
cit count() as the second parameter if using it to number rows, i.e. it doesn't have an "as many as necessary" option. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-gener

[GENERAL] Numbering rows

2008-10-15 Thread Mark Morgan Lloyd
hence rates of change. I've typically been doing it manually or in a spreadsheet but there has to be a better way e.g. by a join on offset row numbers. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues

Re: [GENERAL] Best practice for specifying an interval

2007-09-24 Thread Mark Morgan Lloyd
Rodrigo De Le? wrote: Pg is pretty smart for almost any case. Which still doesn't say anything about best practice. In the end I found the relevant part of the SQL spec, correct forms are HOUR and MINUTE where the associated numbers are integers. -- Mark Morgan Lloyd markML

[GENERAL] Best practice for specifying an interval

2007-09-24 Thread Mark Morgan Lloyd
ger number of minutes? All these forms appear to work. I've got no intention of jumping ship but am curious as to the favoured and most portable style. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Re: [GENERAL] Tablespaces on tertiary media

2007-09-14 Thread Mark Morgan Lloyd
rface for the latter. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your

Re: [GENERAL] Tablespaces on tertiary media

2007-09-14 Thread Mark Morgan Lloyd
the check_loaded.pl script could check that the table was cached and return its name when available. However I guess that the script would probably need to see the initial lseek or whatever as well... there's probably a whole lot of non-obvious details that I've totally overlooked.

Re: [GENERAL] Tablespaces on tertiary media

2007-09-14 Thread Mark Morgan Lloyd
obably unnecessary if the application program was aware that a table had been partitioned by age and accessing old data could be slow. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] --

[GENERAL] Tablespaces on tertiary media

2007-09-14 Thread Mark Morgan Lloyd
code for experimental Berkeley code to do this sort of thing but as far as I know there has never been anything publicly available. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] --

Re: [GENERAL] Locking for function creation

2006-12-04 Thread Mark Morgan Lloyd
Richard Huxton wrote: > > Mark Morgan Lloyd wrote: > > > > If I might ask a related question- assuming that a client has grabbed a > > restrictive lock during a transaction that e.g. is create/replacing > > functions, > > what happens to other sessions th

Re: [GENERAL] Locking for function creation

2006-12-04 Thread Mark Morgan Lloyd
that a client has grabbed a restrictive lock during a transaction that e.g. is create/replacing functions, what happens to other sessions that attempt to run a select or update- will they fail (i.e. an implicit NOWAIT) or will they wait until the lock is released? Does this vary depending on whe

Re: [GENERAL] Locking for function creation

2006-12-04 Thread Mark Morgan Lloyd
Richard Huxton wrote: > > Mark Morgan Lloyd wrote: > > If there's a risk that multiple clients will try to execute a 'create or > > replace function' simultaneously, what's the recommended practice for > > putting it in a transaction and/or locking it?

[GENERAL] Locking for function creation

2006-12-03 Thread Mark Morgan Lloyd
tion is most likely to be involved with, an arbitrary table, or a dummy table specifically reserved for this purpose? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ---(end of broadcast)---

Re: [GENERAL] Converting a timestamp to a time

2006-11-05 Thread Mark Morgan Lloyd
Andreas Kretschmer schrieb: > > Mark Morgan Lloyd <[EMAIL PROTECTED]> wrote: > > > test=# select now()::time; > > > now > > > > > > 11:16:18.22527 > > > (1 row) > > > > Thanks Andreas, I've ended up

Re: [GENERAL] Converting a timestamp to a time

2006-11-05 Thread Mark Morgan Lloyd
Andreas Kretschmer schrieb: > > Mark Morgan Lloyd <[EMAIL PROTECTED]> wrote: > > What is the correct (or even any :-) way of converting a timestamp into a > > time (without timezone etc.)? > > You can CAST it: > > test

[GENERAL] Converting a timestamp to a time

2006-11-05 Thread Mark Morgan Lloyd
o possibly include timezone correction. Obviously this has worked fine for a number of years on 7.1, but 8.1 is objecting to the time() cast. What is the correct (or even any :-) way of converting a timestamp into a time (without timezone etc.)? Any suggestions would be much appreciated. -- M

Re: [GENERAL] NT4 client problem

2006-09-06 Thread Mark Morgan Lloyd
ing to NT4W machines and possibly also '98 on the psql-odbc ML. I'm helping out in a very small way by doing some testing, I suggest you join us there. Current driver version is 8.02.0101 possibly with an updated DLL from Inoue-san's website. -- Mark Morgan Lloyd markMLl .AT. telemet

Re: [GENERAL] Procedural language functions across servers

2006-07-10 Thread Mark Morgan Lloyd
uns a complex query including references to a() and b() which themselves initiate complex queries on backend servers A and B, can I tell X's planner to run a(A) and b(B) simultaneously, or is the only way to have these in distinct sessions storing their results in tables on X? -- Mark Morgan L

  1   2   >