Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotation and Archival of Usage Data #6

Open
s2t2 opened this issue Aug 19, 2015 · 3 comments
Open

Rotation and Archival of Usage Data #6

s2t2 opened this issue Aug 19, 2015 · 3 comments

Comments

@s2t2
Copy link
Contributor

s2t2 commented Aug 19, 2015

To avoid unnecessary production database hosting costs, usage data (e.g. requests) should be archived (moved to storage on Amazon s3), and rotated (deleted from the production database).

@s2t2
Copy link
Contributor Author

s2t2 commented Aug 20, 2015

attempting a pg_dump on production heroku machine...

Running `bundle exec rake backup:db:archive` attached to terminal... up, run.6784
Error: You must install at least one postgresql-client-<version> package.

hmm...

@s2t2
Copy link
Contributor Author

s2t2 commented Aug 20, 2015

attempting a COPY on production heroku machine...

PG::InsufficientPrivilege: ERROR: must be superuser to COPY to or from a file

hmm...

@s2t2
Copy link
Contributor Author

s2t2 commented Aug 20, 2015

a STDIN-based copy approach works around the COPY bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant