If so, I’d love any pointers or gotchas that it took doing to work out.
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
On Feb 25, 2015, at 3:27 PM, Alvaro Herrera alvhe...@2ndquadrant.com wrote:
Tong Pham wrote:
We do have fsync turned on, and there was no disk failure. The database
had to be shut down forcefully because it was becoming nonresponsive
(probably due to inadequate earlier vacuuming) and we
Looking to start collecting what memory usage I can via logging with an eye
towards establishing typical usage profiles for different users (i.e. app,
reporting, etc.) and hopefully later gaining the ability to kill extreme
outliers when they hit.
So, would the temp file size logged via
On Mar 12, 2013, at 4:13 PM, Tom Lane wrote:
Erik Jones ejo...@engineyard.com writes:
What's the best way to determine the age of the current WAL? Not the
current segment, but the whole thing. Put another way: is there a way to
determine a timestamp for the oldest available transaction
What's the best way to determine the age of the current WAL? Not the current
segment, but the whole thing. Put another way: is there a way to determine a
timestamp for the oldest available transaction in the WAL?
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make
On Feb 9, 2010, at 3:28 PM, Erik Jones wrote:
Greetings,
We've recently had database server crash due to a heavy duty disk failure and
upon rebooting we now have a table showing corruption via the invalid page
header in block X message when querying one table in particular, the rest
to get those damaged pages cleared out...
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
On Feb 9, 2010, at 5:00 PM, Jeff Davis wrote:
On Tue, 2010-02-09 at 15:28 -0800, Erik Jones wrote:
* Set zero_damaged_pages=on, run query that originally showed the
corruption. This reports 3 different blocks with invalid page headers
and reports that they are being zero'd out
on pgfoundry only turns up a few
projects that haven't seen any recent updates...
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make
deleting WAL
files that are needed for the standby -- it needs all WAL files generated from
the start_backup() call on.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing
${slave_backup_path}/0* 2/dev/null
ssh ${slave_dbus...@${slave_host} ${PSQL_BIN}/pg_ctl -D ${slavedb} -l logfile
start
Is ${slave_backup_path} your archive directory? Why are you deleting all of
you archives there?
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
On Jan 8, 2010, at 4:50 PM, Erik Jones wrote:
On Jan 8, 2010, at 9:50 AM, Keaton Adams wrote:
OK,
So what am I doing wrong here?
Installed PG 8.3.7 on Slave machine
Restored from last evening's backup from the master DB to make the rsync
across the network finish sooner.
Shut
.
If you don't trust your hosting company then why are you doing business with
them?
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
you'd need to do is wrap your GRANT statements in
functions that log what was done and by whom to a table and then consult that
log table when you need that info.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
then that situation
alone sounds like a good business reason to me not to be looking at MySQL right
now.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general
to the table locks required
by MyISAM. As you mentioned, for the type of active workloads that MyISAM is
good for, you might as well just use memcache over something more reliable
and/or concurrent, or even a simple key-value or document store if you really
don't need transactions.
Erik Jones
text;
BEGIN
CREATE TEMP TABLE x (x text);
COPY x from '/path/to/myfile.txt';
mytxt := (SELECT x from x);
...
END;
$BODY$
LANGUAGE 'plpgsql' VOLATILE;
If you're allowed, you can use an untrusted procedural language.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability
So, the release notes for 8.4 had Easier to use Warm Standby in them. What
changes were made that make it easier to use?
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing
stuff works
underneath the covers. I figured asking this list would be the
simplest way to figure things out.
Yep :)
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list
stuff works
underneath the covers. I figured asking this list would be the
simplest way to figure things out.
Yep :)
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list
constraint declared) to the oid values of rows in pg_namespace catalog
table. For example, say you want to find all of the schemas with a
table named 'foo':
SELECT n.nspname
FROM pg_namespace n, pg_class c
WHERE c.relnamespace = n.oid
AND c.relname = 'foo';
Erik Jones, Database
A.
Nothing built in to show you that. You could, however, have your
trigger on table A make an insert or update to a record in some table
that the trigger on table B could then look for.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US
are
automatically inherited by its children. Other types of constraints
(unique, primary key, and foreign key constraints) are not inherited.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via
for data integrity.
Have you considered a non-relational, schema-less database such as
MongoDB or Cassandra? You're pretty much throwing out the relational
features of this database anyways so it seems that it would make sense
to use something more geared to that kind of work.
Erik Jones
yourself to think about your design
from another angle. Another way to look at permissions is that if you
give too much you're just creating the risk of more work for yourself
if someone later abuses them as you'll be the one asked to fix their
mess.
Erik Jones, Database Administrator
Engine
for grep:
lsof -i tcp:48727
that way you keep the column headers in the output.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org
then it won't see it.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref
the tables :)
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref
transaction is coming from run:
lsof -itcp:port
where port is the value from the client_port column in the earlier
pg_stat_activity output. In the lsof output there should be a pid
column take the pid value and run:
ps aux | grep pid
substituting the actual pid value for pid.
Erik Jones, Database
will be null.
and if I have a row in table C where c.id is null? A don't know.
No, it's perfectly clear as 'NULL = NULL' evaluates to false:
postgres=# select null = null;
?column?
--
(1 row)
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x
On Jun 30, 2009, at 11:25 AM, David Fetter wrote:
On Tue, Jun 30, 2009 at 10:22:23AM -0700, Erik Jones wrote:
postgres=# select null = null;
?column?
--
(1 row)
Actually, it's NULL.
shac...@postgres:5432=# SELECT (NULL = NULL) IS NULL;
?column?
--
t
(1 row)
Er, yeah, I
value,
nextval('sequence_name'), for the id values then that can never happen
unless you at some point use setval('sequence_name', X) where X = the
max value already present in your partitioned table, which you should
never be doing anyway.
Erik Jones, Database Administrator
Engine Yard
/scholarpack.sql 2 c:/scholarpack/ancillary/
dump.err)
status = p.close()
Then check status to see if the command was successful or not.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general
,NULL,NULL,10}
(3 rows)
Time: 0.431 ms
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
of the info needed to set things up manually.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
rolename; to change
to a role that your existing role has membership in (or any to any
role for superuser roles).
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list
know how our testing goes.
1,000 is nothing in terms of schemas. You should be fine.
One thing you'll notice a big change in is dump times from pg_dump
when compared to what you'd see from a db with the same size data set
but a smaller schema.
Erik Jones, Database Administrator
Engine Yard
transparently accessing schemas regardless of what
actual db their on -- and I do think that once you get up to those #s
you're talking you're going to need to partition across multiple boxes.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
' AND lastlogin = 'Y' + '1 day'::interval
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
On May 6, 2009, at 2:17 PM, Erik Jones wrote:
On May 6, 2009, at 2:12 PM, Miguel Miranda wrote:
Hi, what is the recommended way to select a range of dates?
Lets say a have a table with a lastlogin (timestamp) column and i
want toknow what users logged in for last time between 2009-05-01
that
would also match '2009-05-03 00:00:00'.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
' AND lastlogin = 'Y' + '1 day'::interval
it includes the 0 hours of day 3:
05-02-2009 12:00:00 AM
No, 05-02-2009 12:00:00 AM is the midnight point between 2009-05-01
and 2009-05-02.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US
On May 6, 2009, at 2:55 PM, Miguel Miranda wrote:
On Wed, May 6, 2009 at 3:51 PM, Erik Jones ejo...@engineyard.com
wrote:
On May 6, 2009, at 2:48 PM, Miguel Miranda wrote:
Well, i tried all your sugestions, and i found some funny issues, i
use the query to count exactly in a day by day
On May 6, 2009, at 2:59 PM, Adrian Klaver wrote:
On Wednesday 06 May 2009 2:51:08 pm Erik Jones wrote:
On May 6, 2009, at 2:48 PM, Miguel Miranda wrote:
Well, i tried all your sugestions, and i found some funny issues, i
use the query to count exactly in a day by day basis, and running
to be repeatable when you only need to make
sure that each number is only generated once?
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make
with a dynamic way to use new.* so I ended up
just writing out the attribute names in my partition triggers, as
well. In fact, you may want to take a look at pg_partitioner. It
needs some polish but most of the basic functionality is there.
Erik Jones, Database Administrator
Engine Yard
Support
postmaste
62 saslauthd
69 sendmail
28 sh
7 sort
183 sshd
13 syslogd
8 uniq
19 xinetd
I'd start by investigating the 5K+ file descriptors held by Apache.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
to TRUNCATE as it deletes the pages
that are allocated to the table (I'm not sure if the TRUNCATE handles
clearing out the FSM entries for that table or if VACUUM does when the
table is next vacuum'd).
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
to be placed within a custom cron job?
Many thanks!
Eric Crowe
autovacuum will kick off VACUUMs and ANALYZEs but no REINDEXes.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general
:23 PM, Dan Hayes wrote:
Excellent! Thanks. One other quick question... What would happen
if I didn't delete the recovery.conf file? Is that step just to
prevent accidentally restarting the server with it there?
On Tue, Apr 14, 2009 at 6:26 PM, Erik Jones ejo...@engineyard.com
wrote
of information (which is bad
as that's also why I never tested the alternate scenario mentioned in
my other response).
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list
need to do is touch (create) that file and pg_standby will let the
server come out of recovery mode into normal operation mode. Be sure
to rm or mv the recovery.conf once that is complete.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
-N flag.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql
also allow
pagila# \o allout.txt 2
and this would default to stdout for backwards compatibility (and
simplicity)
pagila# \o stdout.txt
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql
3269 20
3 72 5
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org
On Mar 23, 2009, at 5:00 PM, Craig Ringer wrote:
Erik Jones wrote:
Am I missing something obvious here? If not, has anyone come up
with a reliable way to do this?
Triggers on all your tables that append to a logging table?
Have the client do it?
Note that you do *NOT* want to have
and the difference between the
two can vary with the size of the table.
Am I missing something obvious here? If not, has anyone come up with
a reliable way to do this?
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC
will contain a table of contents of all
of the database objects in the dump file. Something in that is
causing an error for pg_restore. Does the version of pg_restore match
up with the version of pg_dump that you used to make the dump?
Erik Jones, Database Administrator
Engine Yard
Support
-+-+--
to1 | from1 | subject1
to2 | from2 | subject2
(2 rows)
Time: 1.011 ms
(P.S. Your quotes around $two in your original are not needed, in fact
they're straight up broken as $two is already inside of a double-
quoted string).
Erik Jones, Database Administrator
Engine
On Mar 23, 2009, at 7:05 AM, Tom Lane wrote:
Erik Jones ejo...@engineyard.com writes:
On Mar 22, 2009, at 9:03 PM, Greenhorn wrote:
How do I use \c (or any other psql commands beginning with a \)
in a
bash script?
For multi-line input to a psql call in a bash (or any decent shell
for this is that while InnoDB
does support MySQL's geometry data types it does *not* support indexes
on geometry columns, only MyISAM does which does not support
transactions. Call me old fashioned if you like, but I like my data
to have integrity ;)
Erik Jones, Database Administrator
Engine
-configured and, thus,
not supported yet.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
' utility.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql
different from the base command.
Yes, also if \o already supports | why not other plumbing symbols
like and for completeness (also possibly filedescriptor?)
I like that. Specifying other file descriptors (e.g. 2) and
redirecting output from on fd to another (#) would be nice.
Erik Jones
On Feb 19, 2009, at 6:30 PM, R Smith wrote:
On Feb 19, 2009, at 11:07 AM, SHARMILA JOTHIRAJAH wrote:
Thanks all
-Sharmila
--- On Thu, 2/19/09, Erik Jones ejo...@engineyard.com wrote:
From: Erik Jones ejo...@engineyard.com
Subject: Re: [GENERAL] How to pipe the psql copy command to Unix
://www.postgresql.org/docs/8.3/interactive/pgstandby.html
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
a *ton*
of IO on that db (had thousands upon thousands of tables). Also, if
you do that you need to be sure to copy pgstat.stat to a permanent
place periodically unless you want to risk losing all of your stats.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
On Feb 2, 2009, at 12:23 AM, durumdara wrote:
Hi!
2009.01.31. 10:13 keltezéssel, Erik Jones írta:
On Jan 30, 2009, at 11:37 AM, durumdara wrote:
The main viewpoints:
- quick (re)connect - because mod_python basically not store the
database connections persistently
mod_python
of a file into the pg_xlog
directory needs to be atomic and there's no guarantee that any given
archive_command will use a tool that does atomic copies.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
On Jan 31, 2009, at 9:36 AM, Scott Marlowe wrote:
On Sat, Jan 31, 2009 at 2:13 AM, Erik Jones ejo...@engineyard.com
wrote:
On Jan 30, 2009, at 11:37 AM, durumdara wrote:
- I can add/modify a table, or a field to a table without full
lock on
the table (like DBISAM restructure). Like
(what kind of IO subsystem? how
many concurrent connections do you need to support? how much memory do
you have? how large is our data set? etc...) than you will answers.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
to generate full
create statements for database objects via an SQL command. I.e.
shelling out to pg_dump is not always a fun option.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql
, sorting each along the way, the results
from each child could be appended and maintain ordering of the results
but the planner has no idea of anything like that.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC
in the event of a HOT updated tuple.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
On Dec 22, 2008, at 1:08 PM, Grzegorz Jaśkiewicz wrote:
On Mon, Dec 22, 2008 at 6:10 PM, Erik Jones ejo...@engineyard.com
wrote:
As mentioned above, by fixing the behavior to be what you're
expecting
you'd be breaking the defined behavior of ALTER TABLE.
I don't understand. The domain's
On Dec 24, 2008, at 12:04 PM, Grzegorz Jaśkiewicz wrote:
On Wed, Dec 24, 2008 at 6:12 PM, Erik Jones ejo...@engineyard.com
wrote:
Yes, and columns have default values, too, which are not tied to
their
datatype's default value (if it even has one). ALTER TABLE
initializes rows
to have
be breaking the defined behavior of ALTER TABLE.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
, that takes two passes over the data instead of one so there's
a bigger IO hit.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make
:)
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
On Dec 8, 2008, at 1:42 PM, Tom Lane wrote:
Erik Jones [EMAIL PROTECTED] writes:
I've just run up against a problem with ALTER LANGUAGE ... OWNER
TO ... wherein the change of ownership does not propagate to a
language's handler and validator functions preventing you from
dropping the role
cannot be dropped because some objects depend
on it
DETAIL: owner of function plpgsql_validator(oid)
owner of function plpgsql_call_handler()
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql
on that which
may in turn surprise others.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
running
cutting edge software, poppycock. Any self-respecting company running
Gentoo should be maintaining their own portage build servers just as a
Debian based company would maintain their own build servers for apt or
RedHat/CentOS for rpm/yum.
Erik Jones, Database Administrator
Engine Yard
master/
slave replication but for that you'd want to get more familiar with
Londiste's various commands.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general
the last_value
column in each seq table to the max(id) from the relevant table.
You shouldn't edit sequence table directly. To set a sequence's value
you should use the setval(seqname, seqval) function like so:
SELECT setval('some_seq', 1000);
Erik Jones, Database Administrator
Engine Yard
. As far as how to get around it we'd need to know a little more
about what the trigger is actually supposed to do.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list
On Nov 7, 2008, at 11:24 AM, Erik Jones wrote:
On Nov 7, 2008, at 10:57 AM, Teemu Juntunen wrote:
Hello,
I have a child table with
CONSTRAINT fkey FOREIGN KEY (x) REFERENCES master (x) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE.
and
CREATE TRIGGER td_y AFTER DELETE ON chlid
if you're
going to go the Python route.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
866.518.9273 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http
/backup/wal/%f = /
backup/wal)
So, that's dirname on the results of grepping for the line that starts
with archive_command piped through a basic awk (split on spaces)
printing the last filed piped through an awk splitting on a single
quote printing the first field.
Erik Jones, Database
to client_addr and run (without the brackets): lsof -i
tcp:client_port
If there's still a client for that connection you should turn up a
process there. If that's the case then you should be tracking down
why your client connection are holding on to open transactions.
Erik Jones, Database
the child
connections) as config reload will take care of pg_hba.conf changes.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
(415) 963-4410 x 260
Location: US/Pacific
IRC: mage2k
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make
an ssh tunnel and
was sitting in FIN_WAIT2 status. Killing the client process
individually made everything go away nicely without any kind of extra
downtime necessary.
Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
(415) 963-4410 x 260
Location: US/Pacific
IRC
On Sep 2, 2008, at 4:16 AM, jose lawrence wrote:
HI,
I want to get more information whether MVCC conflicts with manual
locking ?
Have you read the chapter on MVCC and locks?
http://www.postgresql.org/docs/8.2/interactive/mvcc.html
Erik Jones, Database Administrator
Engine Yard
Support
starting up the standby?
Erik Jones
DBA | Emma®
[EMAIL PROTECTED]
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere communicate market in style.
Visit us online at http://www.myemma.com
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org
running against it (alter tables, index builds/drops, etc...)?
Erik Jones
DBA | Emma®
[EMAIL PROTECTED]
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere communicate market in style.
Visit us online at http://www.myemma.com
--
Sent via pgsql-general mailing
. You have duplicates in slave, not master, and there is
not unique constraint on slave. They are physically separate tables
and Postgres doesn't yet handle inheritance of constraints from parent
to child tables via inheritance.
Erik Jones
DBA | Emma®
[EMAIL PROTECTED]
800.595.4401
WALs and possibly have that a little too aggressive. Do you
have the -k flag set in your pg_standby call in your restore_command?
Erik Jones
DBA | Emma®
[EMAIL PROTECTED]
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere communicate market in style.
Visit us
On Apr 28, 2008, at 8:01 PM, Gurjeet Singh wrote:
On Mon, Apr 28, 2008 at 8:01 PM, Erik Jones [EMAIL PROTECTED] wrote:
Postgres doesn't yet handle inheritance of constraints from parent
to child tables via inheritance.
Was it done by design or was it a limitation we couldn't get over
or so.
Your suggestions are much appreciated!
Are you repeating this question for which you previously received
answers? Or, is the list server repeating messages?
Erik Jones
DBA | Emma®
[EMAIL PROTECTED]
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere
1 - 100 of 486 matches
Mail list logo