Re: [GENERAL] Restore LargeObjects on different server

2017-10-13 Thread Daniel Verite
Durumdara wrote: > The pg_catalog schema is system schema, but it is IN the DB. > > Is this true? So OID is not global (out from DB)? The OID generator is global to the instance, but the unicity checks are local to the tables that use OIDs, including large objects. The case when you may

Re: [GENERAL] Restore LargeObjects on different server

2017-10-12 Thread Laurenz Albe
Durumdara wrote: > > Because of upload/download progress we used LargeObjects to store some > > files in one of our database (and not bytea). > > Only this database uses the OID-s of these files. > > > > In the near future we must move to another server. > > This new server is also working now, t

Re: [GENERAL] Restore LargeObjects on different server

2017-10-12 Thread Durumdara
Hi! Somebody wrote me that: The pg_catalog schema is system schema, but it is IN the DB. Is this true? So OID is not global (out from DB)? So we can dump and restore the DB with OIDs without collision in new server? Thank you! dd 2017-10-12 11:35 GMT+02:00 Durumdara : > Dear Members! > > Be

Re: [GENERAL] Restore single databaseR

2017-01-18 Thread Moreno Andreo
Hi, please don't top post. Il 18/01/2017 15:01, PAWAN SHARMA ha scritto: Thanks for reply, but I have 120 databases running on a one single instance. So it's not possible to take backup of instance instead of taking pg_dumb of all databases separately. Example: suppose we have two instanc

Re: [GENERAL] Restore single databaseR

2017-01-18 Thread PAWAN SHARMA
Thanks for reply, but I have 120 databases running on a one single instance. So it's not possible to take backup of instance instead of taking pg_dumb of all databases separately. Example: suppose we have two instances running on single server, instance A having 120 databases and instance B having

Re: [GENERAL] Restore single databaseR

2017-01-18 Thread Vick Khera
On Wed, Jan 18, 2017 at 7:32 AM, PAWAN SHARMA wrote: > Hello All, > > I am using postgres 9.5 enterprise edition and postgres 9.5 open source > where i want know solution of two problems. > > 1.How can we restore single database from base backup files only, I don't > have pg_dump backup. > Re

Re: [GENERAL] restore a specific schema from physical backup

2016-07-30 Thread Stephen Frost
* David Steele (da...@pgmasters.net) wrote: > On 7/29/16 5:31 PM, Rakesh Kumar wrote: > > Sure. > > > > 1 - You ran pg_basebackup on node-1 against a live cluster and store > > it on NFS or tape. > > 2 - Do a restore on node-2 from the backup taken on (1), but only for > > a subset of the databas

Re: [GENERAL] restore a specific schema from physical backup

2016-07-29 Thread David Steele
On 7/29/16 5:31 PM, Rakesh Kumar wrote: >> Are you saying that?: >> >> 1) You ran pg_basebackup against a live cluster and sent the output to >> another location. >> >> 2) At the other location the cluster is not in use. >> >> 3) You want to grab the contents of the inactive cluster directly off th

Re: [GENERAL] restore a specific schema from physical backup

2016-07-29 Thread Adrian Klaver
On 07/29/2016 02:31 PM, Rakesh Kumar wrote: Are you saying that?: 1) You ran pg_basebackup against a live cluster and sent the output to another location. 2) At the other location the cluster is not in use. 3) You want to grab the contents of the inactive cluster directly off the disk. If tha

Re: [GENERAL] restore a specific schema from physical backup

2016-07-29 Thread Rakesh Kumar
> Are you saying that?: > > 1) You ran pg_basebackup against a live cluster and sent the output to > another location. > > 2) At the other location the cluster is not in use. > > 3) You want to grab the contents of the inactive cluster directly off the > disk. > > If that is the case, then no it is

Re: [GENERAL] restore a specific schema from physical backup

2016-07-29 Thread Adrian Klaver
On 07/29/2016 02:16 PM, Rakesh Kumar wrote: If a cluster is backed up physically using pg_basebackup, how can we restore only a particular schema from it. Is it even possible? Are you saying that?: 1) You ran pg_basebackup against a live cluster and sent the output to another location. 2) A

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-16 Thread Francisco Olarte
Hi Jason: On Sun, Feb 16, 2014 at 1:30 AM, Antman, Jason (CMG-Atlanta) wrote: > I think I jumped on this without really understanding what you were > saying, or the implications of it. If I run N postgres server instances > on the same physical host, I can do away with the overhead of running > e

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-16 Thread Francisco Olarte
Hi: On Sun, Feb 16, 2014 at 1:02 AM, Antman, Jason (CMG-Atlanta) wrote: > ones to expire out of cache. I.e. we have hardware with 192G of RAM. If > each database is only queried, say, for 10 seconds out of each 5 minute > interval, how do we maximize resource utilization / squeeze as many DBs >

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-16 Thread Francisco Olarte
Hi Jason: On Sat, Feb 15, 2014 at 11:17 PM, Antman, Jason (CMG-Atlanta) wrote: > the best we'll be able to do is try to run multiple postgres instances > on each host, and manage the whole "service postgresql-9.0-24 stop" > craziness that comes with that... Just a sugestion, I would not try to i

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-16 Thread Francisco Olarte
Hi Jason: On Sat, Feb 15, 2014 at 10:55 PM, Antman, Jason (CMG-Atlanta) wrote: > The short answer is... due to too much technical debt, and some perhaps > bad decisions made in the past... yeah. We've dug ourselves into this > hole, and there's no feasible way out. The more I read about your pro

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread John R Pierce
On 2/15/2014 4:30 PM, Antman, Jason (CMG-Atlanta) wrote: My current postgres instances for testing have 16GB shared_buffers (and 5MB work_mem, 24GB effective_cache_size). So if, hypothetically (to give a mathematically simple example), I have a host machine with 100GB RAM, I can't run 10 postgres

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Antman, Jason (CMG-Atlanta)
On 02/15/2014 04:55 PM, Antman, Jason (CMG-Atlanta) wrote: > On 02/15/2014 02:00 PM, Francisco Olarte wrote: >> >> If I NEEDED to be able to provide 100-150 snapshots to test/dev >> environments 20% of which maybe active, I'll setup a cluster, buy >> somewhere above a quarter terabyte RAM and some

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Antman, Jason (CMG-Atlanta)
On 02/15/2014 05:27 PM, Karsten Hilbert wrote: > On Sat, Feb 15, 2014 at 10:17:05PM +, Antman, Jason (CMG-Atlanta) wrote: > >> [...] I see how my original "brilliant" idea >> (multiple DBs per postgres instance on one host, [...]) is insane, >> without some specific support for it in postgres.

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Karsten Hilbert
On Sat, Feb 15, 2014 at 10:17:05PM +, Antman, Jason (CMG-Atlanta) wrote: > [...] I see how my original "brilliant" idea > (multiple DBs per postgres instance on one host, [...]) is insane, > without some specific support for it in postgres. "multiple DBs per PostgreSQL instance on one host"

Fwd: Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Adrian Klaver
Forwarding back to list. Original Message Subject: Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces? Date: Sat, 15 Feb 2014 22:08:51 + From: Antman, Jason (CMG-Atlanta) To: Adrian Klaver Replies inline below. Thanks to

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Antman, Jason (CMG-Atlanta)
Replies inline below. Thanks to everyone who's responded so far. The more I explain this, and answer questions, the more I see how my original "brilliant" idea (multiple DBs per postgres instance on one host, instead of 1:1:1 DB:postgres:host) is insane, without some specific support for it in

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Antman, Jason (CMG-Atlanta)
On 02/15/2014 02:00 PM, Francisco Olarte wrote: > Hi: > > On Sat, Feb 15, 2014 at 7:31 PM, Antman, Jason (CMG-Atlanta) > wrote: >> Well thanks for someone at least sending a reply, though I suppose I >> should have asked "how do I do this", or "what are the major hurdles to >> doing this", as it o

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Adrian Klaver
On 02/15/2014 10:31 AM, Antman, Jason (CMG-Atlanta) wrote: Well thanks for someone at least sending a reply, though I suppose I should have asked "how do I do this", or "what are the major hurdles to doing this", as it obviously has to be *possible* given unlimited knowledge, resources and time.

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Antman, Jason (CMG-Atlanta)
On 02/15/2014 01:22 PM, John R Pierce wrote: > On 2/15/2014 10:15 AM, Antman, Jason (CMG-Atlanta) wrote: >> I also asked this question on dba.stackexchange.com, where it >> received a very detailed enumeration of the associated problems from >> Craig Ringer: >> http://dba.stackexchange.com/questi

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread John R Pierce
On 2/15/2014 10:31 AM, Antman, Jason (CMG-Atlanta) wrote: If you had a single ~1TB database, and needed to be able to give fresh data copies to dev/test environments (which are usually largely idle) either on demand or daily, how would you do it? The only other thing that comes to mind is separat

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Karsten Hilbert
On Sat, Feb 15, 2014 at 06:15:04PM +, Antman, Jason (CMG-Atlanta) wrote: > I also asked this question on dba.stackexchange.com, where it received a very > detailed enumeration of the associated problems from Craig Ringer: ... > Perhaps there's a postgres internals expert around, someone > i

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Antman, Jason (CMG-Atlanta)
Well thanks for someone at least sending a reply, though I suppose I should have asked "how do I do this", or "what are the major hurdles to doing this", as it obviously has to be *possible* given unlimited knowledge, resources and time. Perhaps I should frame the question differently: If you

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread John R Pierce
On 2/15/2014 10:15 AM, Antman, Jason (CMG-Atlanta) wrote: I also asked this question on dba.stackexchange.com, where it received a very detailed enumeration of the associated problems from Craig Ringer: http://dba.stackexchange.com/questions/58896/restore-postgres-data-tablespace-to-new-tablespa

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Tom Lane
"Antman, Jason (CMG-Atlanta)" writes: > Perhaps there's a postgres internals expert around, someone intimitely > familiar with pg_xlog/pg_clog/pg_control, who can comment on whether it's > possible to take the on-disk files from a single database in a single > tablespace, and make them usable b

Re: [GENERAL] Restore postgresql data directory to tablespace on new host? Or swap tablespaces?

2014-02-15 Thread Antman, Jason (CMG-Atlanta)
I also asked this question on dba.stackexchange.com, where it received a very detailed enumeration of the associated problems from Craig Ringer: http://dba.stackexchange.com/questions/58896/restore-postgres-data-tablespace-to-new-tablespace-at-new-mount-point/58967?noredirect=1#58967 Perhaps ther

Re: [GENERAL] restore crashes PG on Linux, works on Windows

2013-11-26 Thread Andrew Sullivan
On Tue, Nov 26, 2013 at 02:48:34PM +, Albe Laurenz wrote: > I beg your pardon, but Windows-1252 has nothing to do with Unicode Sorry, you're quite right, I'm having a brain fade (I meant ISO 8859-1, of course). The point I wanted to make, however, is that the collation often causes trouble wi

Re: [GENERAL] restore crashes PG on Linux, works on Windows

2013-11-26 Thread Albe Laurenz
Andrew Sullivan wrote: > Guess guessing, but I bet the collation is what hurts, [...] > (The background for my guess: on your Linux box UTF-8 is likely the > normal local encoding, but on Windows that isn't true, and 1252 is > _almost_ but not quite Unicode. This bites people generally in > inter

Re: [GENERAL] restore crashes PG on Linux, works on Windows

2013-11-26 Thread Albe Laurenz
Chris Curvey wrote: > My vendor took a dump of our "something else" database (which runs on > Windows), did their conversion > to Postgres, and then sent me back a postgres dump (custom format) of the > database for me to load onto > my servers for testing. > > > I was interested to find that w

Re: [GENERAL] restore crashes PG on Linux, works on Windows

2013-11-26 Thread Andrew Sullivan
On Tue, Nov 26, 2013 at 09:25:17AM -0500, Chris Curvey wrote: > > CREATE DATABASE "TestDatabase" WITH TEMPLATE = template0 ENCODING = 'UTF8' > LC_COLLATE = 'English_United States.1252' LC_CTYPE = 'English_United > States.1252'; Guess guessing, but I bet the collation is what hurts, just because t

Re: [GENERAL] Restore a pgsql base from openERP v5(ubuntu) to v7(windows7)

2013-05-28 Thread Adrian Klaver
On 05/28/2013 07:34 AM, image wrote: Hello, Up to now, we're working with openERP v.5. The server has installed on our ubuntu server station. I succeed in sauvegarding database (v8.3 of pgsql) via pg_dump. I would like now restore this database into my new OPENerp server station (windows7). I s

Re: [GENERAL] Restore 1 Table from pg_dumpall?

2013-01-27 Thread Ondrej Ivanič
Hi, On 23 January 2013 04:57, Rich Shepard wrote: > Is there a way I can extract a single table's schema and data from the > full backup? If so, I can then drop the fubar'd table and do it correctly > this time. You should grep for: - CREATE TABLE - COPY statements and then note line numbers

Re: [GENERAL] Restore 1 Table from pg_dumpall?

2013-01-27 Thread Rich Shepard
On Sun, 27 Jan 2013, Jasen Betts wrote: yeah, emacs is slow on large files. Jasen, I've noticed this over the years. for a one-off I'd use less(1), to extract the desired table data. If I had to repeat it i'd use sed or awk I used 'joe'. It handled the job with aplomb. Thanks, Rich

Re: [GENERAL] Restore 1 Table from pg_dumpall?

2013-01-27 Thread Jasen Betts
On 2013-01-22, Rich Shepard wrote: >I neglected to dump a single table before adding additional rows to it via > psql. Naturally, I messed up the table. I have a full pg_dumpall of all > three databases and all their tables in a single .sql file from 2 days ago. > The file is 386M in size and

Re: [GENERAL] Restore 1 Table from pg_dumpall?

2013-01-22 Thread Steve Crawford
On 01/22/2013 09:57 AM, Rich Shepard wrote: I neglected to dump a single table before adding additional rows to it via psql. Naturally, I messed up the table. I have a full pg_dumpall of all three databases and all their tables in a single .sql file from 2 days ago. The file is 386M in size a

Re: [GENERAL] Restore 1 Table from pg_dumpall?

2013-01-22 Thread Kevin Grittner
Rich Shepard wrote: > Is there a way I can extract a single table's schema and data from the > full backup? If so, I can then drop the fubar'd table and do it correctly > this time. If you have a server with enough free space, you could restore the whole cluster and then selectively dump what you

Re: [GENERAL] Restore 1 Table from pg_dumpall? [RESOLVED]

2013-01-22 Thread Rich Shepard
On Tue, 22 Jan 2013, Joshua D. Drake wrote: Rich, the main problem is using pg_dumpall. Unfortunately pg_dumpall has not kept up with all the other advances Postgres has had in the last decade. To set up dump based backups properly I suggest reviewing: http://www.commandprompt.com/blogs/joshua_

Re: [GENERAL] Restore 1 Table from pg_dumpall? [RESOLVED]

2013-01-22 Thread Joshua D. Drake
On 01/22/2013 10:07 AM, Rich Shepard wrote: On Tue, 22 Jan 2013, Rich Shepard wrote: Is there a way I can extract a single table's schema and data from the full backup? If so, I can then drop the fubar'd table and do it correctly this time. My solution: view the file in the pager I use

Re: [GENERAL] Restore 1 Table from pg_dumpall? [RESOLVED]

2013-01-22 Thread Rich Shepard
On Tue, 22 Jan 2013, Rich Shepard wrote: Is there a way I can extract a single table's schema and data from the full backup? If so, I can then drop the fubar'd table and do it correctly this time. My solution: view the file in the pager I use (less), then copy relevant lines to another file

Re: [GENERAL] Restore postgres to specific time

2012-11-27 Thread Jeff Janes
On Tue, Nov 27, 2012 at 6:59 AM, Kevin Grittner wrote: > wd wrote: > >> the time is between backup start and stop. > > That is the problem -- until the point where pg_stop_backup() was > run PostgreSQL can't be sure of having a consistent database. In 9.2, it seems to be willing to give it a shot

Re: [GENERAL] Restore postgres to specific time

2012-11-27 Thread Jeff Janes
On Tue, Nov 27, 2012 at 6:59 AM, Kevin Grittner wrote: > wd wrote: > >> the time is between backup start and stop. > > That is the problem -- until the point where pg_stop_backup() was > run PostgreSQL can't be sure of having a consistent database. It is > waiting from enough WAL to get it there.

Re: [GENERAL] Restore postgres to specific time

2012-11-27 Thread Tom Lane
"Kevin Grittner" writes: > That is the problem -- until the point where pg_stop_backup() was > run PostgreSQL can't be sure of having a consistent database. It is > waiting from enough WAL to get it there. My practice is always to > keep the last two base backups and all WAL from the start of the

Re: [GENERAL] Restore postgres to specific time

2012-11-27 Thread Kevin Grittner
wd wrote: > the time is between backup start and stop. That is the problem -- until the point where pg_stop_backup() was run PostgreSQL can't be sure of having a consistent database. It is waiting from enough WAL to get it there. My practice is always to keep the last two base backups and all WAL

Re: [GENERAL] Restore postgres to specific time

2012-11-26 Thread wd
On Tue, Nov 27, 2012 at 8:27 AM, Jeff Janes wrote: > On Mon, Nov 26, 2012 at 12:23 PM, Kevin Grittner wrote: > > Jeff Janes wrote: > > > >> FATAL: requested recovery stop point is before consistent recovery point > >> > >> I don't understand why are you not getting this message. > > > > Is it be

Re: [GENERAL] Restore postgres to specific time

2012-11-26 Thread wd
On Mon, Nov 26, 2012 at 11:32 PM, Albe Laurenz wrote: > wd wrote: > >>> Logs are something like this: > >>> > >>> [2012-11-24 21:51:33.591 CST 583 50b0d0e5.247 9 0]LOG: recovery > has paused > >>> [2012-11-24 21:51:33.591 CST 583 50b0d0e5.247 10 0]HINT: > Execute pg_xlog_replay_resume() t

Re: [GENERAL] Restore postgres to specific time

2012-11-26 Thread Jeff Janes
On Mon, Nov 26, 2012 at 12:23 PM, Kevin Grittner wrote: > Jeff Janes wrote: > >> FATAL: requested recovery stop point is before consistent recovery point >> >> I don't understand why are you not getting this message. > > Is it before the point where pg_stop_backup() was run? It turns out that the

Re: [GENERAL] Restore postgres to specific time

2012-11-26 Thread Kevin Grittner
Jeff Janes wrote: > FATAL: requested recovery stop point is before consistent recovery point > > I don't understand why are you not getting this message. Is it before the point where pg_stop_backup() was run? -Kevin -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To mak

Re: [GENERAL] Restore postgres to specific time

2012-11-26 Thread Jeff Janes
On Sat, Nov 24, 2012 at 3:44 PM, wd wrote: >> >> What entries are you getting in the log file? >> > Logs are something like this: > > [2012-11-24 21:51:33.374 CST 583 50b0d0e5.247 1 0]LOG: database system > was shut down in recovery at 2012-11-24 21:51:32 CST > [2012-11-24 21:51:33.375 CS

Re: [GENERAL] Restore postgres to specific time

2012-11-26 Thread Albe Laurenz
wd wrote: >>> Logs are something like this: >>> >>> [2012-11-24 21:51:33.591 CST 583 50b0d0e5.247 9 0]LOG: recovery has paused >>> [2012-11-24 21:51:33.591 CST 583 50b0d0e5.247 10 0]HINT: Execute pg_xlog_replay_resume() to continue. >> >> Well, try >> >> SELECT pg_xlog_replay_resume();

Re: [GENERAL] Restore postgres to specific time

2012-11-26 Thread wd
I can't connect to postgres at that time. On Mon, Nov 26, 2012 at 4:33 PM, Albe Laurenz wrote: > wd wrote: > > Logs are something like this: > > [2012-11-24 21:51:33.591 CST 583 50b0d0e5.247 9 0]LOG: recovery > has paused > > [2012-11-24 21:51:33.591 CST 583 50b0d0e5.247 10 0]HINT: Exe

Re: [GENERAL] Restore postgres to specific time

2012-11-26 Thread Albe Laurenz
wd wrote: > Logs are something like this: > [2012-11-24 21:51:33.591 CST 583 50b0d0e5.247 9 0]LOG: recovery has paused > [2012-11-24 21:51:33.591 CST 583 50b0d0e5.247 10 0]HINT: Execute pg_xlog_replay_resume() to continue. Well, try SELECT pg_xlog_replay_resume(); Yours, Laurenz Albe

Re: [GENERAL] Restore postgres to specific time

2012-11-24 Thread wd
On Sun, Nov 25, 2012 at 4:25 AM, Jeff Janes wrote: > On Sat, Nov 24, 2012 at 6:00 AM, wd wrote: > > Yes, you are right, after set the two command, the recovery will stop at > > that time. > > > > But there is an other question, how to make this recovered Postgres can > be > > read and write? Ac

Re: [GENERAL] Restore postgres to specific time

2012-11-24 Thread Jeff Janes
On Sat, Nov 24, 2012 at 6:00 AM, wd wrote: > Yes, you are right, after set the two command, the recovery will stop at > that time. > > But there is an other question, how to make this recovered Postgres can be > read and write? According to the manual, Postgres should be rename > recovery.conf to

Re: [GENERAL] Restore postgres to specific time

2012-11-24 Thread wd
Yes, you are right, after set the two command, the recovery will stop at that time. But there is an other question, how to make this recovered Postgres can be read and write? According to the manual, Postgres should be rename recovery.conf to recovery.done, but it didn't. I've tried pg_ctl promo

Re: [GENERAL] Restore postgres to specific time

2012-11-23 Thread Jeff Janes
On Thu, Nov 22, 2012 at 7:29 PM, wd wrote: > Thanks for your reply, the logs are something like bellow,postgres will > restore every wal log I put in the xlog directory,and then continues waiting > for next wal log. The postgres version is 9.1.6. > > [2012-11-22 18:49:24.175 CST 25744 50ae0334

Re: [GENERAL] Restore postgres to specific time

2012-11-23 Thread Albe Laurenz
wd wrote: >>> I've try to restore Postgres to a specific time but failed. >>> >>> The recovery.conf as bellow >>> restore_command='cp /t/xlog/%f %p' >>> recovery_target_time='2012-11-22 5:01:09 CST' >>> pause_at_recovery_target=true >>> recovery_target_inclusive=false >>> >>> The basebackup was mad

Re: [GENERAL] Restore postgres to specific time

2012-11-23 Thread raghu ram
On Fri, Nov 23, 2012 at 8:59 AM, wd wrote: > Thanks for your reply, the logs are something like bellow,postgres will > restore every wal log I put in the xlog directory,and then continues > waiting for next wal log. The postgres version is 9.1.6. > > [2012-11-22 18:49:24.175 CST 25744 50ae033

Re: [GENERAL] Restore postgres to specific time

2012-11-22 Thread wd
Thanks for your reply, the logs are something like bellow,postgres will restore every wal log I put in the xlog directory,and then continues waiting for next wal log. The postgres version is 9.1.6. [2012-11-22 18:49:24.175 CST 25744 50ae0334.6490 1 0]LOG: database system was shut down in reco

Re: [GENERAL] Restore postgres to specific time

2012-11-22 Thread Albe Laurenz
wd wrote: > I've try to restore Postgres to a specific time but failed. > > The recovery.conf as bellow > restore_command='cp /t/xlog/%f %p' > recovery_target_time='2012-11-22 5:01:09 CST' > pause_at_recovery_target=true > recovery_target_inclusive=false > > The basebackup was made at 2012-11-22

Re: [GENERAL] Restore db

2011-11-13 Thread Andy Colson
On 11/13/2011 06:09 PM, Alexander Burbello wrote: Hi folks, My server has a daily routine to import a dump file, however its taking long time to finish it. The original db has around 200 MB and takes 3~4 minutes to export (there are many blob fields), however it takes 4 hours to import using p

Re: [GENERAL] Restore db

2011-11-13 Thread Ondrej Ivanič
Hi, On 14 November 2011 11:09, Alexander Burbello wrote: > What can I do to tune this database to speed up this restore?? > My current db parameters are: > shared_buffers = 256MB > maintenance_work_mem = 32MB You should increase maintenance_work_mem as much as you can. full_page_writes, archive_

Re: [GENERAL] restore a server backup

2011-03-01 Thread Raymond O'Donnell
On 01/03/2011 06:37, Malm Paul wrote: Hi, I've used PgAdmin III to store a server backup. But I'm not able to restore it. Please, could any one tell me how to do it? Im using version 1.10 Hi there, Did you create a text or binary backup? If binary, you either (i) use pg_restore on the command

Re: [GENERAL] restore a server backup

2011-02-28 Thread Vibhor Kumar
On Mar 1, 2011, at 12:07 PM, Malm Paul wrote: > Hi, I've used PgAdmin III to store a server backup. But I'm not able to > restore it. > > Please, could any one tell me how to do it? Im using version 1.10 > /Paul Following link would help for restoring backup: http://www.pgadmin.org/docs/1.10

Re: [GENERAL] Restore problem

2010-12-31 Thread Vincent Veyron
Le jeudi 30 décembre 2010 à 12:05 -0500, Andrew Sullivan a écrit : [about Abiword] > It's intended as a word processor rather than a text > editor, isn't it? It works with text files too. It's not a problem. -- Vincent Veyron http://marica.fr/ Progiciel de gestion des dossiers de contentieux e

Re: [GENERAL] Restore problem

2010-12-30 Thread Andrew Sullivan
On Thu, Dec 30, 2010 at 06:02:54PM +0100, Vincent Veyron wrote: > > I'm partial to Emacs, but I'm surprised nobody mentionned Abiword : > > http://www.abisource.com/ I think Abiword would be a very bad editor for any kind of database work, no? It's intended as a word processor rather than a tex

Re: [GENERAL] Restore problem

2010-12-30 Thread Vincent Veyron
Le mercredi 29 décembre 2010 à 11:09 -0800, Tim Bruce - Postgres a écrit : > On Wed, December 29, 2010 10:59, John R Pierce wrote: > I'd also like to throw in Context for Windows as an Editor. It's also > free and has syntax highlighting for almost everything imaginable (on > Windows and *ix).

Re: [GENERAL] Restore problem

2010-12-29 Thread Tim Bruce - Postgres
On Wed, December 29, 2010 10:59, John R Pierce wrote: > On 12/29/10 4:34 AM, Leif Biberg Kristensen wrote: >> Back when I used Windows, my favorite editor was EditPlus >> (http://www.editplus.com/). It isn't free, but well worth the 35 bucks. > > other good choices are Notepad++ (free) and my perso

Re: [GENERAL] Restore problem

2010-12-29 Thread Adrian Klaver
On Wednesday 29 December 2010 10:52:50 am Bob Pawley wrote: > -Original Message- > From: Adrian Klaver > Sent: Wednesday, December 29, 2010 8:08 AM > To: pgsql-general@postgresql.org > Cc: Leif Biberg Kristensen > Subject: Re: [GENERAL] Restore problem > > On Wedn

Re: [GENERAL] Restore problem

2010-12-29 Thread John R Pierce
On 12/29/10 4:34 AM, Leif Biberg Kristensen wrote: Back when I used Windows, my favorite editor was EditPlus (http://www.editplus.com/). It isn't free, but well worth the 35 bucks. other good choices are Notepad++ (free) and my personal favorite, UltraEdit ($$). UEdit has some nice stuff lik

Re: [GENERAL] Restore problem

2010-12-29 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Wednesday, December 29, 2010 8:08 AM To: pgsql-general@postgresql.org Cc: Leif Biberg Kristensen Subject: Re: [GENERAL] Restore problem On Wednesday 29 December 2010 4:34:39 am Leif Biberg Kristensen wrote: On Wednesday 29. December 2010

Re: [GENERAL] Restore problem

2010-12-29 Thread Bob Pawley
-Original Message- From: Alban Hertroys Sent: Wednesday, December 29, 2010 4:03 AM To: Bob Pawley Cc: Adrian Klaver ; pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 29 Dec 2010, at 4:40, Bob Pawley wrote: It seems that this has affected just the triggers

Re: [GENERAL] Restore problem

2010-12-29 Thread Adrian Klaver
On Wednesday 29 December 2010 4:34:39 am Leif Biberg Kristensen wrote: > On Wednesday 29. December 2010 13.18.40 Alban Hertroys wrote: > > Learning Vim is probably time well-spent, but until you do it's > > probably not that good a tool for fixing your problem. > > > Although Vim is indeed a very p

Re: [GENERAL] Restore problem

2010-12-29 Thread Adrian Klaver
On Tuesday 28 December 2010 8:45:14 pm Bob Pawley wrote: > -Original Message- > From: Alan Hodgson > Sent: Tuesday, December 28, 2010 8:12 PM > To: pgsql-general@postgresql.org > Subject: Re: [GENERAL] Restore problem > > On December 28, 2010, Adrian Klaver wrote: &g

Re: [GENERAL] Restore problem

2010-12-29 Thread Adrian Klaver
On Wednesday 29 December 2010 3:58:35 am Alban Hertroys wrote: > On 29 Dec 2010, at 4:29, Adrian Klaver wrote: > >>> What program are you using to look at the plain text file? > >>> > >>> > >>> Notepad > >>> > >>> Bob > >> > >> Open the file in Wordpad and see if it looks better. > >> > >> It looks

Re: [GENERAL] Restore problem

2010-12-29 Thread Leif Biberg Kristensen
On Wednesday 29. December 2010 13.18.40 Alban Hertroys wrote: > Learning Vim is probably time well-spent, but until you do it's probably not that good a tool for fixing your problem. > > Although Vim is indeed a very powerful editor, it's not particularly easy to use. Unlike your usual editors

Re: [GENERAL] Restore problem

2010-12-29 Thread Alban Hertroys
On 29 Dec 2010, at 7:54, Alan Hodgson wrote: >> I'll look at that - I'm also looking at something called Vim >> http://www.vim.org/download.php > > vim is an excellent open source text editor. Which may fix your problem if > it's related to line endings. Learning Vim is probably time well-spen

Re: [GENERAL] Restore problem

2010-12-29 Thread Alban Hertroys
On 29 Dec 2010, at 4:40, Bob Pawley wrote: > It seems that this has affected just the triggers - although that is quite > massive I will just plug away at it until it's done (Gosh, those lines were hard to find!) How did you create those functions? With notepad, or from within pgadmin? If you

Re: [GENERAL] Restore problem

2010-12-29 Thread Alban Hertroys
On 29 Dec 2010, at 4:29, Adrian Klaver wrote: >>> What program are you using to look at the plain text file? >>> >>> >>> Notepad >>> >>> Bob >>> >> >> Open the file in Wordpad and see if it looks better. >> >> It looks the same. >> >> Bob > > Well there goes that theory. Notepad is almost u

Re: [GENERAL] Restore problem

2010-12-29 Thread Jasen Betts
On 2010-12-29, Bob Pawley wrote: > Yes I was just looking at it. > > It seems that it was dumped in that form. > > Any thoughts on how that could happen?? Not that it will help in this > instance. could be EOL problem. LF vs CRLF but I expect that would be merely cosmetic. -- Sent via pgsql-g

Re: [GENERAL] Restore problem

2010-12-28 Thread Alan Hodgson
On December 28, 2010, "Bob Pawley" wrote: > It's often a good idea to maintain function definitions outside the > database, > under version control, and apply them to the database from there. > > I would appreciate a more detailed explanation of this. Treat them like source code. > > Bob > >

Re: [GENERAL] Restore problem

2010-12-28 Thread Scott Marlowe
On Tue, Dec 28, 2010 at 8:05 PM, Bob Pawley wrote: > What program are you using to look at the plain text file? > > > Notepad Did you at some point open the backup file with notepad, make a change and then save it? If so notepad may have permanently mangled the backup. If so, do you have an ori

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Alan Hodgson Sent: Tuesday, December 28, 2010 8:12 PM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On December 28, 2010, Adrian Klaver wrote: On 12/28/2010 07:40 PM, Bob Pawley wrote: >> Open the file in Wordpad and see

Re: [GENERAL] Restore problem

2010-12-28 Thread Alan Hodgson
On December 28, 2010, Adrian Klaver wrote: > On 12/28/2010 07:40 PM, Bob Pawley wrote: > >> Open the file in Wordpad and see if it looks better. > >> > >> I downloaded an sql editor and it looks the same in it as well. > >> > >> At least the editor will make it easier to fix the problem. However

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On 12/28/2010 07:40 PM, Bob Pawley wrote: Open the file in Wordpad and see if it looks better. I downloaded an sql editor and it looks the same in it as well. At least the editor will make it easier to fix the problem. However I would like to know what happened so I can avoid it in the future

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 7:33 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 12/28/2010 07:27 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On 12/28/2010 07:27 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 7:06 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 12/28/2010 07:05 PM, Bob Pawley wrote: -Original Message- From

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On 12/28/2010 07:16 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 7:06 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 12/28/2010 07:05 PM, Bob Pawley wrote: -Original Message- From

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 7:06 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 12/28/2010 07:05 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 7:06 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 12/28/2010 07:05 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On 12/28/2010 07:05 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 6:51 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On Tuesday 28 December 2010 6:41:51 pm Bob Pawley wrote: > &g

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 6:51 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On Tuesday 28 December 2010 6:41:51 pm Bob Pawley wrote: > > Bob > > -- > Adrian Klaver > adria

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On Tuesday 28 December 2010 6:41:51 pm Bob Pawley wrote: > > > Bob > > > > -- > > Adrian Klaver > > adrian.kla...@gmail.com > > > > This is the plain text dump file through pg_admin dump. But the plain > > text dump fie through psql restored in the same way. > > I am not following. psql cannot cre

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 6:09 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On Tuesday 28 December 2010 5:58:51 pm Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
@postgresql.org Subject: Re: [GENERAL] Restore problem On Tuesday 28 December 2010 5:58:51 pm Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 4:21 PM To: pgsql-general@postgresql.org Cc: Bob Pawley Subject: Re: [GENERAL] Restore problem On Tuesday 28 December

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On Tuesday 28 December 2010 5:58:51 pm Bob Pawley wrote: > -Original Message- > From: Adrian Klaver > Sent: Tuesday, December 28, 2010 4:21 PM > To: pgsql-general@postgresql.org > Cc: Bob Pawley > Subject: Re: [GENERAL] Restore problem > > On Tuesday 28 December 20

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 4:21 PM To: pgsql-general@postgresql.org Cc: Bob Pawley Subject: Re: [GENERAL] Restore problem On Tuesday 28 December 2010 3:06:40 pm Bob Pawley wrote: Hi I have restored a database using psql to windows version

  1   2   3   >