[GENERAL] Postgres 9.6 Streaming Replication on Solaris 10

2016-12-19 Thread rich
Hello List,    I am setting up Postgres 9.6 for streaming replication.  The OS is Solaris X86  I downloaded the postgres solaris binaries from the Postres site and installed on 2 instances of Solaris 10.  I then used pg_dumpall to load the master server with data from our devel0pment server.  That

Re: [GENERAL] Postgres 9.6 Streaming Replication on Solaris 10

2016-12-21 Thread rich
will return the correct value only in the usr login.  The question then is if postgres is running as usr postgres how does it know the value of LD_LIBRARY_PATH.  Isn't there another place where it must be set?Regards,Rich Rutkowskir...@salepointdata.com Original Message S

Re: [GENERAL] Postgres 9.6 Streaming Replication on Solaris 10

2016-12-22 Thread rich
beginning to suspect there is a problem with the binary that I downloaded from the postgres site.  When I execute ldd -r  /usr/postgres/9.6-pgdg/lib/libpqwalreceiver.so there are many symbols not found.  I do not know what to make of it just yet.  I did reinstall.Regards,Rich Rutkowskir

[GENERAL] Schema Help Needed To Get Unstuck

2015-07-23 Thread Rich Shepard
r each of many permits.) Table 'Monitoring': Contains columns for date, location, parameter, quantity, and other attributes. FK references permit number. (Many rows for each permit.) TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes t

[GENERAL] Schema Help Needed To Get Unstuck

2015-07-23 Thread Rich Shepard
r each of many permits.) Table 'Monitoring': Contains columns for date, location, parameter, quantity, and other attributes. FK references permit number. (Many rows for each permit.) TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes t

Re: [GENERAL] Schema Help Needed To Get Unstuck

2015-07-23 Thread Rich Shepard
s straight. I'll ponder this and make sure I set the proper FKs on the appropriate tables. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Schema Help Needed To Get Unstuck

2015-07-23 Thread Rich Shepard
feed the conditions table (where additional attributes are added), then a row from that table is added to the monitoring table where quantities and other attributes are entered. Sometimes we get so deep in a rut we can't see over the edge and find the correct path. Thanks very much, Rich -

[GENERAL] Problem with database connections timing out for long-running queries

2015-08-21 Thread Rich Schaaf
tcp_keepalives_count = 5 I don't see the disconnect problem for long-running queries that use a local database connection. Any advice on what might be causing remote database connections to drop after 12 hours (and how to work around the issue)? Kind regards, Rich

Re: [GENERAL] Problem with database connections timing out for long-running queries

2015-08-24 Thread Rich Schaaf
I am using the default TIMEOUTidle setting in stunnel so that seems plausible. Thanks very much for pointing me in what sounds like the right direction! Kind regards, Rich From: Steve Crawford [mailto:scrawf...@pinpointresearch.com] Sent: Friday, August 21, 2015 6:25 PM To: Rich

[GENERAL] Avoiding re-inventing a wheel

2016-08-12 Thread Rich Shepard
icker and easier. Your thoughts? Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Avoiding re-inventing a wheel

2016-08-12 Thread Rich Shepard
using Python3 and Phoenix. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Avoiding re-inventing a wheel

2016-08-12 Thread Rich Shepard
ources to learn what I need; if there are ways to better integrate postgres with PHP I'd certainly like to learn about them. As always, I look forward to learning from those who know more than I do. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To

[GENERAL] Upgrading using pg_dumpall

2016-09-03 Thread Rich Shepard
bin directory now is; /usr/bin/postgres is a soft link to /usr/lib/postgresql/9.4/bin/postgres. This suggests that I need to use pg_dumpall, then read in the file using psql with the 9.4.5 version. I've dumped all databases to a .sql file and am unsure how to proceed. Clue stick needed, Rich

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-03 Thread Rich Shepard
do you suggest as the procedure for me to follow to clean this all up? TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-03 Thread Rich Shepard
you verify that the new instance is running and you can connect to it Not sure how I do this. Don't I need to kill the postgres-9.3.4 process then start the -9.5.4 process? Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your sub

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-03 Thread Rich Shepard
-d postgres -p 5442 -f your_dumpall.sql In /tmp there's only .s.PGSQL.5432= .s.PGSQL.5432.lock and since only 9.5.4 is now running that port should be available. The above command failed when run as both me (as user owning/granted all privileges on all databases) and as superuser postgr

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-03 Thread Rich Shepard
"rshepard" What was the error message? As above. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-03 Thread Rich Shepard
-reading that file. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
On Sun, 4 Sep 2016, Charles Clavadetscher wrote: Does the user rshepard exist in the new 9.5 instance? I assume so but do not know how to check this. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
paragraph of comments as different. I'll try attaching them; they're ~100 lines each. If the attachments are stripped off my the mlm I'll list them within the message body. Rich # PostgreSQL Client Authentication Configuration File # ===

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
ntion when I initially ran initdb I used a commandline found on a web site (rather than just reading the man page) and used the -W option which requires a password for everything. So starting over from scratch _should_ remove all issues and successfully end this thread. Thanks, Rich -- Sen

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
hepard | UTF8 | C | en_US.UTF-8 | rshepard=CT I did not recognize this as the answer to Charles' question. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
ADIR --locale=en_US.UTF-8 -A md5 -W\"" exit 6 fi Note the '-W' at the end. But, I ran initdb from the command line as user postgres. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
user postgres: psql (9.5.4) Type "help" for help. postgres=# So, it appears to be a password issue. Please advise me how to get the running postmaster process to accept my accessing databases without a password being required. Thanks again, Rich -- Sent via pgsql-general mailing list

Re: [GENERAL] Upgrading using pg_dumpall [FIXED]

2016-09-04 Thread Rich Shepard
start does not work[1] I stopped the process then restarted it. I can now access my databases and the financial software via the browser UI. Now I can remove the 9.3.4 directory and be comfortable that the next upgrade will be smooth. Thanks very much for your patient help! Much appreciated,

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
fore set a password specifically for postgresql. Since I'm the only user and the trust authentification has worked for the same period, I'll leve it that way. Thanks for your help, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to you

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
system tables pg_user and pg_shadow: https://www.postgresql.org/docs/9.5/static/catalogs.html Adrian, I did not know this. Thanks for the information. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org

Re: [GENERAL] Upgrading using pg_dumpall [FIXED]

2016-09-04 Thread Rich Shepard
he URL you provided and add a password for me, too. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
system tables pg_user and pg_shadow: https://www.postgresql.org/docs/9.5/static/catalogs.html I see the pg_user in Section 49.79 but don't know how to correctly configure it. It seems that pg_shadow is unnecessary since I don't need to provide compatibility with versions < 8.1. R

Re: [GENERAL] Upgrading using pg_dumpall [FIXED]

2016-09-04 Thread Rich Shepard
with the authorization method set to md5 was because the password field was missing. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
, given my single-user situation do you think that I should ALTER ROLE to add my password? Adding it to ~/.pgpass did nothing positive when I changed auth method to md5; my attempt to open a database failed because that password was rejected. Strange ... to me. Rich -- Sent via pgsql-general ma

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
t is not a mechanism for entering that information into the database. So yes, you will need to use ALTER ROLE to create the password inside Postgres. OK. I'll try that for the learning experience. So much to learn and so little time ... Thanks, Rich -- Sent via pgsql-general mail

Re: [GENERAL] Upgrading using pg_dumpall

2016-09-04 Thread Rich Shepard
and I enter my username and password on the login page. It works with auth method trust. I've no idea exactly how it connects to the database. Since it ain't broke I won't futz with it and possibly break it. I've other things with higher priorities. Rich -- Sent via pgsql-

Re: [GENERAL] Postgres UPGRADE from 9.2 to 9.4

2016-09-06 Thread Rich Shepard
On Wed, 7 Sep 2016, Patrick B wrote: 2 - I've never done a Postgres upgrade before, can you give some guide here? Is usually a easy thing? How long can it take? Is a downtime needed? Patrick, I suggest the place to start is 'man pg_upgrade.' It is helpful. Rich -- Sent vi

[GENERAL] Server crashed, now cannot start postgres

2016-09-12 Thread Rich Shepard
open shared memory segment "/PostgreSQL.1804289383": Permission denied Not before encountering this problem I've no idea where to look to see how to fix it. Please advise. TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] Server crashed, now cannot start postgres [FIXED]

2016-09-12 Thread Rich Shepard
sions (755). Thanks to your response I remembered that chromium does not run until I follow its advice to chmod 1777 /dev/shm. Sure enough, chromium would not load. So, I changed the perms on /dev/shm/ and now both postgres and chromium work. Very much appreciated, Rich -- Sent via pgsql-general ma

Re: [GENERAL] Server crashed, now cannot start postgres [FIXED]

2016-09-12 Thread Rich Shepard
On Mon, 12 Sep 2016, Tom Lane wrote: Hmm, AFAIK that's what it should be out of the box. Certainly on my RHEL6 machine I see Until I make the time to upgrade this host from Slackware-14.1 to -14.2 the kernel is 3.10.17-smp. Rich -- Sent via pgsql-general mailing list (pgsql-ge

[GENERAL] System crashed: fatal error restarting postgres

2016-09-30 Thread Rich Shepard
PostgreSQL.1804289383": Permission denied Please advise me on how I proceed to clear this and restart the application. TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] System crashed: fatal error restarting postgres [FIXED]

2016-09-30 Thread Rich Shepard
On Fri, 30 Sep 2016, Adrian Klaver wrote: See here: https://www.postgresql.org/message-id/24208.1473724630%40sss.pgh.pa.us Ah, shoot! I completely forgot about this. Yes, I reset the perms on /dev/shm and that fixed the problem. My apologies to all, Rich -- Sent via pgsql-general

Re: [GENERAL] System crashed: fatal error restarting postgres

2016-09-30 Thread Rich Shepard
On Fri, 30 Sep 2016, Tom Lane wrote: Wrong permissions on /dev/shm, perhaps? Tom, Yes. I keep forgetting about this since I don't reboot this server/workstation often. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to

[GENERAL] Save query results to new table

2016-10-27 Thread Rich Shepard
7;Cr' or param = 'Cu'; If you point me to the appropriate page in the 9.5.x manual I'll figure it out. TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Save query results to new table [RESOLVED]

2016-10-27 Thread Rich Shepard
On Thu, 27 Oct 2016, John R Pierce wrote: CREATE TABLE newtable AS SELECT ... https://www.postgresql.org/docs/9.5/static/sql-createtableas.html Thank you, John. Much appreciated, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

[GENERAL] E-R diagram code U1

2016-10-29 Thread Rich Shepard
using (but suspect Oracle). My web search used in-effective terms so I could not find the answer there. What does U1 represent? Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] E-R diagram code U1

2016-10-29 Thread Rich Shepard
On Sat, 29 Oct 2016, Tom Lane wrote: What does U1 represent? Unique constraint, perhaps? I'm just guessing. Tom, That's my guess, too. I've not seen it used before now and did not know if it's a standard code for something or one specific to this agency. Thanks,

Re: [GENERAL] E-R diagram code U1

2016-10-29 Thread Rich Shepard
expressing my search terms. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Upgrade from 9.5.4 to 9.6.1

2016-11-15 Thread Rich Shepard
do I look for the two bindirs? TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Upgrade from 9.5.4 to 9.6.1

2016-11-15 Thread Rich Shepard
re no /bin directories associated with postgres. So, I'll go the pg_dumpall route then. Thanks very much, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Upgrade from 9.5.4 to 9.6.1

2016-11-15 Thread Rich Shepard
ake life easier. Currently, only 9.5.4 is running; 9.6.1 is installed and initiated but not running. When I invoke 'psql -l' I see the clusters installed in 9.5.4. Will use pg_dumpall and pg_restore ... tomorrow morning. Thanks very much, Rich -- Sent via pgsql-general mailin

Re: [GENERAL] Upgrade from 9.5.4 to 9.6.1

2016-11-15 Thread Rich Shepard
On Tue, 15 Nov 2016, Adrian Klaver wrote: Rich is using Slackware and I am pretty sure it marches to a different drummer. Adrian, And a different band. Pat likes MariaDB which replaced MySQL so PostgreSQL is not part of the base distribution. But, SlackBuilds.org provides a build script

Re: [GENERAL] Upgrade from 9.5.4 to 9.6.1

2016-11-15 Thread Rich Shepard
r/bin/pg_ctl -> ../lib/postgresql/9.6/bin/pg_ctl* Aha! That's where the bin/ directories are. There's a 9.3.4/ and 9.5/ subdirectory there, too. Will do a pg_dumpall and then run pg_upgrade. Thanks, both of you. I learned valuable lessons, Rich -- Sent via pgsql-general mailing l

Re: [GENERAL] Upgrade from 9.5.4 to 9.6.1

2016-11-16 Thread Rich Shepard
On Tue, 15 Nov 2016, Rich Shepard wrote: $ /usr/bin/pg_ctl --version pg_ctl (PostgreSQL) 9.6.1 ls -al /usr/bin/pg_ctl lrwxrwxrwx 1 root root 32 Nov 15 14:16 /usr/bin/pg_ctl -> ../lib/postgresql/9.6/bin/pg_ctl* To increase my understanding I want to resolve an apparent discrepancy

Re: [GENERAL] Upgrade from 9.5.4 to 9.6.1

2016-11-16 Thread Rich Shepard
only list them, but access them from the command line. This is what I'm trying to understand. Regardless, I'll stop the running postgres, run pg_upgrade, then start it from the /9.6/data/ directory. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

Re: [GENERAL] Upgrade from 9.5.4 to 9.6.1

2016-11-16 Thread Rich Shepard
:) Adrian, et al.: Did a pg_dumpall and stored it with my database-backups. Now that I know where to find the bin/ directories pg_upgrade ran flawlessly. Quick and easy. Thanks all, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription

Re: [GENERAL] Invoice Table Design

2016-11-24 Thread Rich Shepard
oe Celko's books; they're very helpful. Only you and your client know just what's needed. This approach will open your client to data/information they need that is not provided by their current software and will provide you the basis for designing the postgres schemas. Rich -- Sent

Re: [GENERAL] Invoice Table Design

2016-11-29 Thread Rich Shepard
you'll need customer, invoice, line-item tables at the minimum. But since I use it only to generate service invoices and post them to accounts payable I don't know the details of how it works. I do use postgres (currently -9.6.1) and httpd with it. HTH, Rich -- Sent via pgsql-gene

[GENERAL] Postgres and LibreOffice's 'Base'

2016-12-04 Thread Rich Shepard
efore being imported into Base? All tips and gotcha's for a new user are certainly welcome. TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Postgres and LibreOffice's 'Base'

2016-12-04 Thread Rich Shepard
. My clients all run Windows about which I know nothing. Is there a GUI for postgres that works on all platforms and suitable for someone like me? Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org

Re: [GENERAL] Postgres and LibreOffice's 'Base'

2016-12-04 Thread Rich Shepard
over the past few years looking for a simpler solution and they just don't exist. I'll learn django and take it step-by-step. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mail

Re: [GENERAL] Postgres and LibreOffice's 'Base'

2016-12-04 Thread Rich Shepard
this for mine). I would provide some guidance on installing necessary software, but it's theirs to use as they choose. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Postgres and LibreOffice's 'Base'

2016-12-04 Thread Rich Shepard
at my clients use. Long ago I looked at flask; that might be worth a second look. I'm also seriously looking at peewee, which is an ORM simpler than SQLAlchemy, and the Phoenix toolkit for the UI. Thanks very much, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To ma

Re: [GENERAL] Postgres and LibreOffice's 'Base'

2016-12-04 Thread Rich Shepard
of the time. But, I'll look again at the Python3 version called Phoenix and Peewee (a lighter ORM than SQLAlchemy). Sorry if I went off into left field on this. That's fine. All ideas are always welcome. Regards, Rich -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] Postgres and LibreOffice's 'Base'

2016-12-05 Thread Rich Shepard
On Mon, 5 Dec 2016, Johann Spies wrote: Web2py is another (and maybe simpler) alternative to Django. Johann, Thank you. I'll look at it. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mai

Re: [GENERAL] Postgres and LibreOffice's 'Base'

2016-12-05 Thread Rich Shepard
in a stand-alone application that can be packaged for easy installation and use by clients. Thanks very much for your suggestions, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] PDF files: to store in database or not

2016-12-06 Thread Rich Shepard
tenance records, etc. My thinking is to not store these documents in the database, but to store them in subdirectories outside the database. Your thoughts? Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgres

Re: [GENERAL] PDF files: to store in database or not

2016-12-06 Thread Rich Shepard
On Tue, 6 Dec 2016, Joshua D. Drake wrote: Due to the widely variable size of a PDF document, I would say no. I would store the metadata and file location. Joshua, I read your answer as "don't store them in the database, but store the location in a column." Thanks for co

Re: [GENERAL] PDF files: to store in database or not

2016-12-06 Thread Rich Shepard
same as a bytea (page 217 of the 9.6 PDF manual), and I cannot find BLOB as a postgres data type. Please point me in the right direction to learn how to store PDFs as BLOBs. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] PDF files: to store in database or not

2016-12-06 Thread Rich Shepard
On Tue, 6 Dec 2016, John R Pierce wrote: indeed BYTEA is postgres's type for storing arbitrary binary objects that are called BLOB in certain other databases. John, I thought so. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to

[GENERAL] When to use COMMENT vs --

2016-12-07 Thread Rich Shepard
I have used '-- ' to enter comments about tables or columns and am curious about the value of storing comments in tables using the COMMENT key word. When is the latter more appropriate than the former? TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.or

Re: [GENERAL] When to use COMMENT vs --

2016-12-08 Thread Rich Shepard
l see only the entire application. Thanks for explaining, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] PDF files: to store in database or not

2016-12-08 Thread Rich Shepard
;ll read how to work with it. Thanks very much for your insights, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] PDF files: to store in database or not

2016-12-08 Thread Rich Shepard
On Thu, 8 Dec 2016, Adrian Klaver wrote: http://initd.org/psycopg/docs/usage.html?highlight=binary#adapt-binary Thanks again, Adrian. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql

Re: [GENERAL] PDF files: to store in database or not

2016-12-08 Thread Rich Shepard
much more pleasant to work with. They're not referenced frequently, only occasionally. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Looking for an online mentor

2016-12-08 Thread Rich Shepard
between the database back end and the user interface, and a widget set (PyQt5 is a good one) for the UI. If you want to develop a web-based application then replace the UI with django. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes t

Re: [GENERAL] Looking for an online mentor

2016-12-08 Thread Rich Shepard
rogramming, too), you'd be better off learning Python first and looking beyond that only when you hit a dead end. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] CRM where pg is a first class citizen?

2016-12-13 Thread Rich Shepard
to make my CRM a stand-alone application. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] CRM where pg is a first class citizen?

2016-12-13 Thread Rich Shepard
cade of wxPython use with Python2 and am just about ready to start creating the UI. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Syntax error needs fresh eyeballs

2016-12-26 Thread Rich Shepard
traint matching given keys for referenced table "weather_params". TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Syntax error needs fresh eyeballs

2016-12-26 Thread Rich Shepard
that what you wanted to put in Weather_Data is a two-column FK: FOREIGN KEY (site_id, param) REFERENCES Weather_Params (site_id, param) That would match Weather_Params' pkey, so it's enough to identify a unique row of Weather_Params. Thanks, Tom. Yes, I do want a 2-colum

[GENERAL] Error in column constraint syntax

2016-12-27 Thread Rich Shepard
'City',... ^ Having a default value or a named constraint makes no difference, and the maximum size of the org_lvl column is that of the longest string so I am not seeing the source of my error. Where, other than Section 5.3.1 of the manual can I learn why

Re: [GENERAL] Error in column constraint syntax

2016-12-27 Thread Rich Shepard
mples in 5.3.1 have a "(" following the word CHECK as well... Yes, I see now that I misplaced the opening parenthesis and missed the second closing parenthesis at the end of the IN list. I thought I had tested this syntax; obviously I did not. Thanks, Rich -- Sent via pgsql-

[GENERAL] Generating sample data

2016-12-27 Thread Rich Shepard
ed on each table's schema? TIA, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Generating sample data

2016-12-27 Thread Rich Shepard
ach work for you? Greg, I work in Python, not Ruby, so this might be too big of a hurdle. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Generating sample data

2016-12-27 Thread Rich Shepard
, streets, etc. Steve, Thanks very much for the URL. One application is small (7 tables), the other is three times that size (23 tables). If I need to find public domain data on the Web, I'll do that. Much appreciated, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresq

Re: [GENERAL] Generating sample data

2016-12-27 Thread Rich Shepard
neric data of the appropriate types myself. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Generating sample data

2016-12-27 Thread Rich Shepard
On Tue, 27 Dec 2016, Adrian Klaver wrote: As it happens there is a Python version of the a fore mentioned faker: https://pypi.python.org/pypi/Faker/0.7.7 It was I use to generate fake/sample data. Adrian, Aha! That's a great start for me. Many thanks, Rich -- Sent via pgsql-ge

Re: [GENERAL] Generating sample data

2016-12-27 Thread Rich Shepard
On Tue, 27 Dec 2016, Adrian Klaver wrote: As it happens there is a Python version of the a fore mentioned faker: https://pypi.python.org/pypi/Faker/0.7.7 Adrian, Impressive and complete. It will generate all the data I need. Many thanks, Rich -- Sent via pgsql-general mailing list

Re: [GENERAL] Generating sample data

2016-12-28 Thread Rich Shepard
en I get the large database application up and running I'll post it on github and turn it loose into the F/OSS world under the GPL. Regards, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Securing Information

2016-12-28 Thread Rich Shepard
ails. HTH, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Er Data Modeller for PostgreSQL

2016-12-28 Thread Rich Shepard
nd my wishes for a healthy, happy, and prosperous 2017 to you and all who responded to my question, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Er Data Modeller for PostgreSQL

2016-12-28 Thread Rich Shepard
I can test as I develop. Happy new year to you, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Er Data Modeller for PostgreSQL

2016-12-29 Thread Rich Shepard
On Thu, 29 Dec 2016, Nicolas Paris wrote: Hi I'd like to tell about Sql Power Architect Nicholas, SPA was going to be my next re-examination after dbeaver. Since the latter easily accomplished what I needed I stopped there. Thanks for the reminder, Rich -- Sent via pgsql-ge

Re: [GENERAL] Book or other resource on Postgres-local code?

2016-12-29 Thread Rich Shepard
On Thu, 29 Dec 2016, Guyren Howe wrote: I would like to find a book or other resource about SQL server-side programming (stored procedures etc) best practices in general and for Postgres in particular. Start here: <http://www.postgresqltutorial.com/postgresql-stored-procedures/>

[GENERAL] Default column value

2016-12-30 Thread Rich Shepard
Reading the 9.6 docs suggests an answer to my question, but does not explicitly answer it, so I ask here. If a column has a default value specified does this mean the column cannot contain a NULL value? In other words, is DEFAULT NOT NULL redundant? TIA, Rich -- Sent via pgsql-general

Re: [GENERAL] Default column value

2016-12-30 Thread Rich Shepard
default value. Much appreciated, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Default column value

2016-12-30 Thread Rich Shepard
. Happy New Year, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Default column value

2016-12-30 Thread Rich Shepard
m', 'gpm')), Seems to me that if values are constrained by a list a NULL cannot be entered by the user. Is this correct? Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Default column value [ANSWERED]

2016-12-30 Thread Rich Shepard
David, I forgot about that. Thanks for pointing it out to me. Regards, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] 9.6.1: INSERT with PK as serial

2017-01-16 Thread Rich Shepard
ng that is column 2. The error message does not print the integer PK. If it matters, I have all 14 columns specified but not explicitly named in the INSERT INTO command. I've looked in the manual without learning how to INSERT data in a table with a serial PK and need to learn how to

Re: [GENERAL] 9.6.1: INSERT with PK as serial

2017-01-16 Thread Rich Shepard
ies VALUES (AG Spray Inc.,,PO Box 12129,Sa... If you're not specifying the column names, then the VALUES list must have the same number of values, in the same order as the columns defined on the table. As I wrote in the original message, I did this. Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] 9.6.1: INSERT with PK as serial

2017-01-16 Thread Rich Shepard
nicipalities', 'Ports/Marine Services', 'Transportation')), status varchar(20) NOT NULL CONSTRAINT invalid_status CHECK (status in ('Client', 'Proposal submitted', 'Prospect', 'Referral', 'Opportunity', 'No further contact')), comment text ); Also, you can't just write double commas to leave out a item in the value list. You could write DEFAULT there, ie I tried with ,, and ,'', and ,' '. Same error each time. Also, listing each column name does not fix the problem. Thanks, Rich -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

  1   2   3   4   5   6   7   8   >