e is that I followed
Did you reload the configuration after changing pg_hba.conf, e.g.
"SELECT pg_reload_conf()"?
Also, looks like you have a typo:
> host replication repuser 127.0.0.1/32 mds5
> host replication repuser 0.0.0.0/0 mds5
mds5 -> md5
"pg_ctl_options" to something like:
pg_ctl_options='-l /path/to/log'
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
that date into two columns on my select:
>
> 2015-12-18 = date column
> 02:40:00 = time column
>
> How can I do that without modifying any column/data?
> Maybe in a select?
TO_CHAR() is your friend:
https://www.postgresql.org/docs/current/static/functions-formatting.html
Regards
Ia
ich is what I guess you mean with "shared_memory")
can be a different value appropriate to the standby's hardware resources.
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, RemoteDBA, Training & Services
--
Sent v
had this particular use-case before,
so I'll add some notes to the documentation on how best to handle it.
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-general mailing list (p
WAL to retain, though you do
then need to be
careful that all standbys are actually consuming WAL otherwise files will be
retained for ever
(or until disk space runs out, whichever comes first).
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Dev
we have only six months of postgresql data on the postgresql
database server.
Have you looked at Barman ( http://www.pgbarman.org/ )?
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, RemoteDBA, Training Services
(...)
== Data from Node2 log file
2015-06-08 10:08:45.957 PDT LOG: entering standby mode
It looks like you're trying to run BDR on a streaming replication standby.
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, RemoteDBA
:
--
Looks like you're missing an entry for IPv6 in pg_hba.conf; something
like this:
hostall all ::1/128 md5
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7
the IMPORT FOREIGN
SCHEMA
command, however this is limited to table/view definitions.
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training Services
--
Sent via pgsql-general mailing list (pgsql-general
a variable number) and will make life easier if you
ever need to do some kind of query involving multiple customers.
There will also be less overhead when adding a new schema vs adding
a new database.
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL
, particularly:
http://bdr-project.org/docs/0.9/release-0.9.0.html
http://bdr-project.org/docs/0.9.0/quickstart-editing.html
http://bdr-project.org/docs/0.9.0/quickstart-enabling.html
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7
ms
(7 rows)
[1] http://www.postgresql.org/docs/current/interactive/pgtrgm.html
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training Services
--
Sent via pgsql-general mailing list (pgsql-general
but kind of from Germany, now in Japan).
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, RemoteDBA, Training Services
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription
the CGI scripts use is expecting to find
the socket in another directory, e.g. /var/run/postgresql/.
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training Services
--
Sent via pgsql-general mailing list (pgsql-general
for 9.4 beta 3 yet ? we would use that if
available
and not too hard to install
beta3 has not yet been released (October 9th is the scheduled date).
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training Services
) should do the trick:
postgres= \pset linestyle unicode
Line style (linestyle) is unicode.
postgres= SELECT E'foo\n';
?column?
──
foo ↵
(1 row)
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7
On 14/08/28 8:04, Ian Barwick wrote:
On 14/08/28 7:31, Rich Shepard wrote:
I have some rows in a table where a column attribute has a newline (\n)
appended to the string. How do I represent that newline character in a SQL
statement using psql?
I've tried adding E'\n' to the end
the special literal value 'now' to
specify the current date and time
and also here:
http://www.postgresql.org/docs/9.3/static/datatype-datetime.html#AEN5861
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training
';
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training Services
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql
))
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training Services
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
if there was something else I needed to do.
Was the database server restarted after the new version was built?
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training Services
--
Sent via pgsql-general mailing list (pgsql-general
; in
particular you should always run the latest minor version, which
is currently 9.2.8.
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training Services
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org
force_not_null can do the trick since that is on the
column level and not lines/row.
The blank lines referred to here are in the source code itself.
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training Services
--
Sent
2010/9/21 Bruce Momjian br...@momjian.us:
Bruce Momjian wrote:
Ian Barwick wrote:
Hi
Just a quick note for anyone else building 9.0 from source and
experimenting
with pg_upgrade - if you get a message like the following when running the
pg_upgrade binary:
pg_upgrade_support.so
ago, see:
http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/pg_upgrade/Attic/pg_upgrade
)
HTH
Ian Barwick
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
results quickly with Postgres.
Bruce Momjian's book is an excellent primer:
http://www.postgresql.org/docs/books/awbook.html
It is *very* outdated (I remember using that to get started myself,
almost 10 years ago) and a lot has been improved since then.
Ian Barwick
--
Sent via pgsql-general
.
Ian Barwick
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
2010/4/8 Ognjen Blagojevic ogn...@etf.bg.ac.rs:
Hi,
How do you name a table which sole purpose is to store a list of values?
(...)
Is this:
a. Lookup table
b. Classifier
c. Cypher(er)?
I'm looking for the appropriate term in English.
I'd call it a lookup-table.
Ian Barwick
--
Sent
Hi Adrian,
2010/3/9 Adrian Klaver adrian.kla...@gmail.com:
On Tuesday 09 March 2010 12:50:45 am Ian Barwick wrote:
Hi
I was wondering where some spurious information in a query was
coming from - it looked like something was inserting all the
values of a table row as a comma-separated list
on 8.4.1 and 8.4.2; does not work in 8.3.1
(old test version I happen to have hanging around).
Questions:
- is this a feature?
- and if so, where is it documented?
(given that the key word in this is name, this is a tricky one
to research).
Thanks for any pointers.
Ian Barwick
--
Sent via
I'm not sure whether I'll be
able to attend all of the conference I will certainly be around and it would
be great to meet up.
Also, if anyone needs any help / advice / translation etc., feel free to ask and
I will do my best.
Ian Barwick
--
Sent via pgsql-general mailing list (pgsql-general
--+--++--
101 | COLON, CRISTOBOL | OPEZ, CARLOS |
102 | COLON, CRISTOBOL | LUGO, FERNANDO |
(2 rows)
(No doubt there are probably more elegant ways of doing this)
HTH
Ian Barwick
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org
these; and a file which
contains the SQL required to make the changes between application
releases.
Ian Barwick
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
)
HTH
Ian Barwick
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
actionlist line 11 at return next
You probably need to do
SELECT * FROM actionlist(123)
Ian Barwick
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
2007/11/18, Mag Gam [EMAIL PROTECTED]:
Hi All,
Planning to implement tsearch2 for my websitem and dbschema. I wanted to
know if there is a Best practices guide I should be following. While
reading about it, I noticed there were lot of 'gotchas' with this, such as
back-up/restore, Slony 1
of
doing it (didn't see any, but..)
You want the network address functions and operators, I presume:
http://www.postgresql.org/docs/8.2/interactive/functions-net.html
HTH
Ian Barwick
--
http://sql-info.de/index.html
---(end of broadcast)---
TIP
validation for security-related operations ;).
Regards
Ian Barwick
--
http://sql-info.de/index.html
---(end of broadcast)---
TIP 6: explain analyze is your friend
connected to. If you do
\c MyTest
mytest=# select * from MyTest.public.cars;
the query will work (case is not the problem here).
HTH
Ian Barwick
--
http://sql-info.de/index.html
---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ
to the
intended default value).
Ian Barwick
---(end of broadcast)---
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
.
I've seen this kind of error in connection with hardware errors
(typically bad RAM or severe hard disk errors). Have you attempted
replicating this problem on another system to confirm / exclude this
as a possible cause?
Ian Barwick
--
http://sql-info.de/index.html
believe it's called pgpedia.
That'd be wikipgedia:
http://pgfoundry.org/projects/wikipedia/
Ian Barwick
---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining
functions,
* than MySQL ones, some of them should be moved to parent
* Database class.
*
* STATUS: Working PG implementation of MediaWiki
* TODO: Installer support
*
* @package MediaWiki
*/
(There's also includes/DatabaseOracle.php but it doesn't say
anything about status).
Ian Barwick
of the MySQL gotchas list, I created
one for PostgreSQL for the sake of balance. Though I'm really having
to scrape the barrel for material ;-).
The MySQL list is a little outdated; I'm going through it with updates
for version 5.
Ian Barwick
---(end of broadcast
/index.html
Oracle acquires Innobase, which is the company behind the InnoDB table
bit of MySQL, i.e. the engine with the foreign keys, transactions and
all that.
Is there a shortage of lion toothpaste in Sweden or something?
Ian Barwick
---(end of broadcast
had a chance to update the site much recently, but I'm slowly
going through the list to update it for MySQL 5.
Ian Barwick
---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings
is longer than the database field
etc.) and this is causing the insertion of invalid values in the
above statement.
Ian Barwick
---(end of broadcast)---
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's
: http://firebird.sourceforge.net/index.php?op=historyid=ann_2
(This page: http://firebird.sourceforge.net/index.php?op=historyid=ann_1
says also: InterBase started in the shower. Maybe the something
else that escapes me was NetBSD? ;-)
Ian Barwick
---(end of broadcast
providing schema names for your common
functions, e.g. SELECT * FROM common.mytable . Depending on your app,
that could be better from a security point of view in PostgreSQL as well,
if you want to prevent your users from sneakily replacing the common
database objects.
Ian Barwick
, MySQL, DB2 and Oracle on the
same development machine without any issues. Of course if another
application is in constant use on a production server PostgreSQL won't
perform as well as it could.
Ian Barwick
---(end of broadcast)---
TIP 5: Have you
('C'||encode(decode('c3b4','hex'),'escape')||'te d''Azur');
Ian Barwick
---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get
/2004-12/msg9.php ):
... The current plan is to make final release around
December 15th if everything goes well. ...
Ian Barwick
---(end of broadcast)---
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
as '
declare
l integer;
begin
l = 38;
if l 38 then
return '' 38'';
elseif l = 38 then
Try elsif here.
(No, I don't know what the problem with elseif is).
Ian Barwick
---(end of broadcast)---
TIP 9: the planner will ignore your
or something like that? Are these mappings stored anyware?
pg_catalog.pg_type ?
Ian Barwick
---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send unregister YourEmailAddressHere to [EMAIL PROTECTED])
WHERE date + (numdays || ' days')::interval = CURRENT_TIMESTAMP;
Ian Barwick
---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
, it's possible to do a
single transaction on two different databases ??
Not AFAIK, though contrib/dblink might be able to help you.
HTH
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL
/postgres_ext.h and look for NAMEDATALEN.
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster
'
Caveats:
- this is _not_ schema-aware.
- requires the information schema, e.g. 7.4 and later
- might just be horribly wrong anyway, but you get the general idea ;-)
HTH
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast)---
TIP 1: subscribe
summe;
END;$BODY$
LANGUAGE 'plpgsql' VOLATILE;
BTW you don't need to specify VOLATILE here - it's the default - and
STABLE might be the appropriate choice anyway.
HTH
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast)---
TIP 5: Have you
, it errors out
ERROR: column c does not exist
Is it possible to do a query like this with PostgreSQL?
select lastname,count(*) as c from names group by lastname having count(*) 1;
HTH
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast)---
TIP
apps); also, the LIMIT x,y syntax
will no longer work.
Your best bet is fro someone who knows your system to go through the
PostgreSQL release notes.
Ian Barwick
---(end of broadcast)---
TIP 9: the planner will ignore your desire to choose an index
the 7.4.x database have?
Ian Barwick
---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html
-
müller
(1 row)
ctest=# SET client_encoding TO UNICODE;
SET
ctest=# SELECT * FROM coding;
data
-
müller
(1 row)
Ian Barwick
---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
On Tue, 24 Aug 2004 00:46:50 +0200, Markus Bertheau
[EMAIL PROTECTED] wrote:
, 23.08.2004, 23:04, David Wheeler :
On Aug 23, 2004, at 1:58 PM, Ian Barwick wrote:
er, the characters in name don't seem to match the characters in the
query - '' vs. '' - does that have any bearing
On Mon, 23 Aug 2004 16:50:04 -0700, David Wheeler [EMAIL PROTECTED] wrote:
On Aug 23, 2004, at 4:34 PM, Ian Barwick wrote:
wild speculation in need of a Korean speaker, but:
[EMAIL PROTECTED]:~/tmp cat j.txt
[EMAIL PROTECTED]:~/tmp uniq j.txt
All
judgements about averages for varchar columns. The hidden
storage overhead is what I'm wondering about, I guess.
There is a little info in the FAQ:
http://www.postgresql.org/docs/faqs/FAQ.html
particularly sections 4.6 and 4.14
Ian Barwick
[EMAIL PROTECTED]
---(end
On Sun, 18 Jul 2004 15:30:01 +0200, Ian Barwick [EMAIL PROTECTED] wrote:
On Tue, 13 Jul 2004 05:53:36 +0100 (BST), raj veluchamy
[EMAIL PROTECTED] wrote:
hello all,
i am running postgres in compiling postgres in OSCAR
cluster.
installation is done to /home/pgsql as i couldn't do
for a selectrow_array, or one of those others mentioned?
Just checking, but do all your scripts have :
use strict;
use warnings;
at the top?
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL
(
id INT unique,
info text
) type=innodb;
create table abc1234 (
moreinfo text,
ref_id int REFERENCES abc123(id)
) type=innodb;
but the foreign key defined on ref_id is (I presume)
transported to a remote forest in Sweden and eaten
by goats ;-)
Ian Barwick
[EMAIL PROTECTED
' between t.begin and t.end then t.login else 'None' end
as log,
LOWER(case when 'now' between t.begin and t.end then t.login else 'None'
end)
as log_lower
from my_table t
order by 2;
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast
completion.
The person that manages the machine installed from sources.
It needs to be (re)compiled with readline support, and you will
need the readline headers (SuSE provides a readline-devel rpm).
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast
On Tuesday 15 July 2003 09:51, Stefan Armbruster wrote:
Hi,
Am Mon, 2003-07-14 um 21.01 schrieb Ian Barwick:
On Monday 14 July 2003 16:04, Stefan Armbruster wrote:
Hi,
I tried to migrate a database from 7.3.2 down to PostgreSQL 7.2.2
Any particular reason?
Yes, I'm developing
, or possibly GNU/Unixen ? ;-)
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through
%';
brings both results instead of only showing Polo.
One solution[*]:
SELECT * FROM testtable WHERE to_ascii(testfield,'LATIN1') LIKE '%olo%'
Note this might not work with all database encodings, especially UNICODE.
[*] no doubt someone will be along in a moment with another.
Ian Barwick
[EMAIL
On Wednesday 02 July 2003 02:58, Jean-Christian Imbeault wrote:
(B Alvaro Herrera wrote:
(B No, only the "second" one will fail (though it's difficult which one is
(B the second)
(B
(B From:
(B
(B http://marc.theaimsgroup.com/?l=postgresql-generalm=105656988915991w=2
(B
(B I
whatever
http://www.postgresql.org/docs/view.php?version=7.3idoc=0file=ddl-alter.html
IIRC it was introduced fairly recently (7.3?)
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ
://www.postgresql.org/docs/view.php?version=7.3idoc=0file=release-7-2.html
The timestamp(), time(), and interval() functions are no longer available.
Instead of timestamp(), use timestamp 'string' or CAST.
- something like:
select timestamp '2001-01-01 00:00';
should work
Ian Barwick
[EMAIL PROTECTED
dummy_table bit.
(in Oracle it would be FROM dual).
Ian Barwick
[EMAIL PROTECTED]
---(end of broadcast)---
TIP 8: explain analyze is your friend
On Wednesday 25 June 2003 21:37, Mike Mascari wrote:
Ian Barwick wrote:
On Wednesday 25 June 2003 20:06, Reuben D. Budiardja wrote:
(...)
This kind of query should work; just leave out the FROM dummy_table
bit. (in Oracle it would be FROM dual).
I proposed that same solution 3 years ago
AND xref.function_id=? - and here
(disclaimer: statement untested)
The values not available will be returned as NULL.
Thanks a bunch,
a bunch of what? ;-)
HTH
Ian Barwick
--
Ian Barwick - Developer
http://www.akademie.de
Remove SUNGLASSES to reply ;-)
---(end
81 matches
Mail list logo