Hi Eric,
Thanks for using PostgreSQL!
On Fri, Nov 10, 2017 at 9:26 AM, Paul Jungwirth
wrote:
> Oh this has happened to me before. :-) On SB1 you need to set
> archive_mode to always (not on). Otherwise it is ignored when running as a
> standby.
It looks to me
Hi Poul, and thanks for using PostgreSQL! I've also been a very heavy
user of Oracle and now a heavy user of PostgreSQL.
I remember the days before Oracle acquired the RMAN software and
bundled it with their database. Not so long ago, doing backups on
Oracle wasn't so different from PostgreSQL;
On Mon, Oct 2, 2017 at 10:27 AM, Khalil Khamlichi
wrote:
> we have records like this
>
> ccdb1=# select user_name, agent_status, event_time from cc_events ;
>
> user_name | agent_status | event_time
> ---+--+-
> user1 |
hing.)
Other than that there really isn't a realisable consistent
behaviour beyond the current strict bitwise interpretation.
Specifically any behaviour which tries to promote or truncate
some "sign" bits in an arithmetically consistent manner is going
to break existing behav
On 2/18/17 at 3:33 AM, Egon Frerich wrote:
I have a table with two columns with type money. If column 'a' has an
amount > 0 then this amount is wanted else the amount from column 'b'.
Examples in 4.2.14
SELECT CASE WHEN a > 0 THEN a ELSE b END FROM
WHERE ;
Regards
Gavan Sch
/static/sql-createtrigger.html
Is the function ever getting called?
refer:
http://www.postgresql.org/docs/9.2/static/plpgsql-errors-and-messages.html
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
into
account, but what is the basis for such a general prohibition on
a modern SQL dB? why not use the feature?
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
On 30/3/13 at 12:58 AM, D'Arcy J.M. Cain wrote:
On Sat, 30 Mar 2013 12:04:21 +1100 Gavan Schneider wrote:
No MONEY column would be complete without the ability to
specify whether it is normally DEBIT or CREDIT (or in my
preferred case
That seems extreme. What use case would there ever
On 31/3/13 at 5:20 AM, D'Arcy J.M. Cain wrote:
On Sun, 31 Mar 2013 21:57:49 +1100 Gavan Schneider wrote:
On 30/3/13 at 12:58 AM, D'Arcy J.M. Cain wrote:
That seems extreme. What use case would there ever be for making a
column always debit or always credit? I have a G/L system and most
.
Sequential integers rarely fulfil this role as implied by the
original question.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
. The actual values within the column
remain as simple integers. This is mostly based on performance
issues. If the MONRY type is to be used it has to offer real
performance benefits over bespoke NUMERIC applications.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general
raised by OP. :)
Hope this hasn't been too much of a ramble.
Regards, and happy (Western) Easter to all,
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
traditions and has special
benefits with externally provided data... values will enter the
dB with sign conventions properly observed.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org
setting.
Personally I have ignored the money type in favour of numeric.
Money seemed to do too much behind the scenes for my taste, but,
that's me being lazy as well, I haven't spend much time trying
to understand its features.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list
On Friday, February 8, 2013 at 19:34, Albe Laurenz wrote:
Gavan Schneider wrote:
Referring to:
http://www.postgresql.org/docs/current/static/sql-createtable.html
I really must have missed something so am
standing by for the 'gotcha'... please supply :)
Further down on the page you quote
mount/unmount/move tablespace a reality be my guest, but, be
warned, there seem to be some very fundamental barriers.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql
On Wednesday, February 6, 2013 at 11:56,
2jt6w5k...@sneakemail.com (Zach Seaman znseaman-at-gmail.com
|pg-gts/Basic|) wrote:
This a similar question to this one
http://www.postgresql.org/message-id/4dda42060512140509xe8b13...@mail.gmail.com,
so I have encoded a database with LATIN-1 as
. If
that's the case, why are we having this discussion if the
requested functionality/compliance is already present? (As I
have said already) I really must have missed something so am
standing by for the 'gotcha'... please supply :)
Regards
Gavan Schneider
--
Sent via pgsql-general mailing
mind we should not consider implementing non-standard
behaviour, but if something is in the standard I can't see why
it shouldn't be implemented, esp. when there is no compulsion
for it to be used.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org
of overflow.
(And yes, I do feel stupid having to ask this question here.)
If in doubt the Novice list is designed for those questions
where feelings of impending stupidity lurk.
Regards
Gavan Schneider (who considers himself a novice)
--
Sent via pgsql-general mailing list (pgsql-general
-length WAL file) then
compress-transmit-decompress the result you will get much better
use of the available bandwidth between master and slave servers.
Specifically you will only be sending information that is
needed, and smaller data chunks are faster data chunks.
Regards
Gavan Schneider
can only
hope ISO-8601 will prevent more examples being created.
You sound as though you really need, and/or already have, a
dedicated datatype... if only to stop 'the system' from 'fixing'
such weirdness.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general
On 01/21/2013 07:40 PM, Gavan Schneider wrote:
...
The points raised by Adrain have prompted some more research on my
part and I am intrigued to learn that on one day of the year in many
countries (e.g., Brazil) where daylight conversion happens over
midnight the local-time version
, or if this proposal has too many
adverse consequences, but hope springs eternal. :)
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
/confusion.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
On Monday, January 21, 2013 at 12:06, Kevin Grittner wrote:
Adrian Klaver wrote: [Actually Gavan Schneider wrote this, don't blame Adrian :]
I see where my confusion lies. There are two proposals at work in the above:
Taking another tangent I would much prefer the default time
to be 12:00
On Monday, January 21, 2013 at 10:53, Steve Crawford wrote:
On 01/21/2013 02:48 PM, Gavan Schneider wrote:
Taking another tangent I would much prefer the default time to
be 12:00:00 for the conversion of a date to timestamp(+/-timezone).
Propose: '2013-12-25'::timestamp == 2013-12-25
in time. This is
just one of several scenarios where the date might get changed
in ways that could be difficult to trace... caveat coder.
Thanks again everyone for a lot more clarity in my thinking
about dates times and timezones.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list
On Saturday, January 12, 2013 at 04:49, Gavin Flower wrote:
On 12/01/13 06:45, Bosco Rama wrote:
Shouldn't the value for theta be:
2 * pi() * random()
Bosco.
Very definitely! :-)
One could also ask if the value for theta shouldn't be:
tau() * random()
http://tauday.com/ :-)
Regards
On Wednesday, January 9, 2013 at 04:42, Michael Nolan wrote:
On 1/8/13, Gavan Schneider wrote:
2. SELECT ... WHERE
'2011-01-01'::TIMESTAMP = col_of_type_timestamp
ANDcol_of_type_timestamp =
'2011-12-31'::TIMESTAMP;
This won't quite work, because '2011-12-31
this is the way to go, but would an index based on
extract(YEAR...) negate this difference?
Regards
Gavan Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
performance difference between them, but lots
of design advantages in favour of text (it's much more 'future proof').
These ideas are much better explained, and tested here:
http://www.depesz.com/2010/03/02/charx-vs-varcharx-vs-varchar-vs-text/
Regards
Gavan Schneider
--
Sent via pgsql-general
somewhere.
Anything else to add? and, what is the next step?
Regards
Gavan Schneider
PS. Of course I will smile bravely if this is the postgresql
equivalent of being Rick rolled :)
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
Tom, thanks for the reply
On Thursday, November 29, 2012 at 12:58, Tom Lane wrote:
Gavan Schneider writes:
pendari= select now()/0;
Bus error: 10
[ scratches head... ] I get the expected error report on my own OS X
10.7.5 machine (though it's just plain Lion not Server).
As of Lion
On Friday, November 23, 2012 at 21:36, Peter Kroon wrote:
Hello,
I wish to return the SELECT statement.
Ho can I achieve this?
DO $$
DECLARE v_some_id int=14;
BEGIN
/*
more queries here...
*/
SELECT 'this is text';
END
length while still keeping the working
tables compact.
3. (Wild speculation) There may be a sweet spot using even shorter
identifiers than is the case now, with full disambiguation, which
might improve overall performance.
Regards
Gavan Schneider
--
Sent via pgsql-general mailing
Hello,
is there any possibility to convert special columns during an CSV import
via COPY?
For example:
HELLO;WORLD;;011001
should be converted to a character field
011001 to the date 10th January 2001
For the moment the only idea we have is, to import the CSV into a TEMP
table and
able to explain why I get such bad runtimes? And even better, do you
see a way to speed up WinGetFuncArgInPartition or replace it by something more
performant? Would linear access be faster?
Thank you for your support.
Thilo Schneider
P.S.: I know my question might be better suited the hackers
, it should be possible to create the cache only once over the whole
query - using only the arguments in the array, which do not change over
multiple calls.
Is there a way around this problem? Another pointer I could use and do not know
of yet?
Thanks in advance,
Thilo Schneider
--
Sent via pgsql
!
}
--- snip
---
Regards,
Thilo Schneider
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
database.dump
Using a dump file generated in pgadmin3, works fine... but pgadmin
exports some strange things that are not related to the database.
What can be wrong ?
Cesar
On Mon, 2005-01-17 at 18:42, Tom Lane wrote:
Cesar Schneider [EMAIL PROTECTED] writes:
but is not a plain text dump, so I don't
Hi, I have a dump that was generated with pg_dump in 8.0-beta5 and I'm
trying to restore with pg_restore in 8.0-RC3.
The pg_dump command was: # pg_dump -Ft -o -b database
The pg_restore command was: # pg_restore -Ft -d database
When I execute pg_restore I get this error:
pg_restore: [archiver]
*
* n'engagent pas la responsabilite de METEO-FRANCE. *
* Valerie SCHNEIDER Tel : +33 (0)5 61 07 81 91 *
* METEO-FRANCE / DSI/DEVFax : +33 (0)5 61 07 81 09 *
* 42, avenue G. Coriolis
database
thread-index: AcR6Iae9QRnQrjxYRJyInj9KrC3FYQAAOJgQ
From: Merlin Moncure [EMAIL PROTECTED]
To: Valerie Schneider DSI/DEV [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mu.meteo.fr id
i74D9IO19408
The result
Is there an easy way to pipe a select statement's output to a file?
--
[ Russ Schneider (a.k.a. Sugapablo) ]
[ http://www.sugapablo.com --music ]
[ http://www.sugapablo.net --personal ]
[ [EMAIL PROTECTED] --jabber IM ]
---(end of broadcast
On Fri, 26 Dec 2003, Russ Schneider wrote:
I need to transfer a dump from a psql 7.3 database to a 7.2 database.
Is there any way to do this?
In case anyone wants to know (or find out later searching the archives), I
was able to do this with minimal effort.
Here's what worked for me:
1
In 7.2, how would you change ownership of a database and all its tables
and sequences?
Right now everything is owned by postgres and I want to change ownership
to a regualar user.
--
[ Russ Schneider (a.k.a. Sugapablo) ]
[ http://www.sugapablo.com --music ]
[ http
I need to transfer a dump from a psql 7.3 database to a 7.2 database.
Is there any way to do this?
--
[ Russ Schneider (a.k.a. Sugapablo) ]
[ http://www.sugapablo.com --music ]
[ http://www.sugapablo.net --personal ]
[ [EMAIL PROTECTED] --jabber IM
50 matches
Mail list logo