Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread Adrian Klaver
On 05/19/2017 01:57 PM, Micky Hulse wrote: Wow, so many helpful replies already! Thanks everyone! I'm going to do my best at answering questions … Starting from the first email reply. :) What version of Postgres, OS and how was it installed? PostgreSQL 9.3.9 on i686-redhat-linux-gnu, compil

Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread David G. Johnston
On Fri, May 19, 2017 at 2:43 PM, Paul Jungwirth wrote: > On 05/19/2017 02:25 PM, Micky Hulse wrote: > >> Awesome, that worked! >> >> SET search_path TO myschema, public; >> >> Thanks to everyone for the help! I really appreciate it. :) >> > > Glad you figured it out! Setting the seach_path is

Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread Paul Jungwirth
On 05/19/2017 02:25 PM, Micky Hulse wrote: Awesome, that worked! SET search_path TO myschema, public; Thanks to everyone for the help! I really appreciate it. :) Glad you figured it out! Setting the seach_path is often a good thing to put in your ~/.psqlrc so you don't run into the same

Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread Micky Hulse
On Fri, May 19, 2017 at 2:09 PM, Micky Hulse wrote: >> If you find that the type isn't in the public schema, try setting your >> schema search path so that the function can locate it, e.g.: >> SET search_path TO foo, public; Awesome, that worked! SET search_path TO myschema, public; Thanks

Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread Micky Hulse
On Fri, May 19, 2017 at 2:09 PM, Micky Hulse wrote: > Cool! Dumb question, but is foo the schema or the type? Doh! I see now that foo is the schema! Thanks again Paul! -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgre

Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread Micky Hulse
On Fri, May 19, 2017 at 1:31 PM, David G. Johnston wrote: > Short answer here is that whomever is calling that function needs to ensure > that their search_path is setup so that the type can be found somewhere in > it. Your desire for obscurity means you are pretty much on the hook for > figuring

Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread Micky Hulse
Hello and thanks for the help! On Fri, May 19, 2017 at 1:25 PM, Paul Jungwirth wrote: > It sounds like the type might be in a different schema. You can say \dn to > see the schemas in your database, and \dT+ will show the types along with > their schema. You could also do \dT+ foo.* to see all th

Re: [GENERAL] storing large files in database - performance

2017-05-19 Thread Merlin Moncure
On Fri, May 19, 2017 at 2:04 PM, Eric Hill wrote: > I am pleased to report that with Merlin's suggestion of using the > pg-large-object middleware, I have a test case now showing that I can write a > 25MB buffer from Node.js to Postgres in roughly 700 milliseconds. Here is > the JavaScript cod

Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread Micky Hulse
Wow, so many helpful replies already! Thanks everyone! I'm going to do my best at answering questions … Starting from the first email reply. :) On Fri, May 19, 2017 at 1:20 PM, Adrian Klaver wrote: >> sudo -i -u username > You should not need to do above. >> psql -U otherusername -d database > Ju

Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread David G. Johnston
On Fri, May 19, 2017 at 1:06 PM, Micky Hulse wrote: ​Short answer here is that whomever is calling that function needs to ensure that their search_path is setup so that the type can be found somewhere in it. Your desire for obscurity means you are pretty much on the hook for figuring out the rig

Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread Paul Jungwirth
On 05/19/2017 01:06 PM, Micky Hulse wrote: ERROR: type "xxx_xxx_x" does not exist LINE 1: DECLARE results xxx_xxx_x; It sounds like the type might be in a different schema. You can say \dn to see the schemas in your database, and \dT+ will show the types along with their schema. You

Re: [GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread Adrian Klaver
On 05/19/2017 01:06 PM, Micky Hulse wrote: Hello, I hope this is the right list for me to ask questions about psql. Please let me know if I am in the wrong place. :) I am far from an advanced user of PostgreSQL, so please bear with me ... I am working with an inherited database/codebase. I am

[GENERAL] type "xxxxxxx" does not exist

2017-05-19 Thread Micky Hulse
Hello, I hope this is the right list for me to ask questions about psql. Please let me know if I am in the wrong place. :) I am far from an advanced user of PostgreSQL, so please bear with me ... I am working with an inherited database/codebase. I am trying to call this function via psql: # SEL

Re: [GENERAL] storing large files in database - performance

2017-05-19 Thread Eric Hill
I am pleased to report that with Merlin's suggestion of using the pg-large-object middleware, I have a test case now showing that I can write a 25MB buffer from Node.js to Postgres in roughly 700 milliseconds. Here is the JavaScript code, which is nearly verbatim from the example in the pg-lar

Re: [GENERAL] Weird periodical pg log

2017-05-19 Thread cen
Hmm indeed that seems to be the case. Thanks for the tip! On 05/19/2017 04:10 PM, John R Pierce wrote: On 5/19/2017 1:25 AM, cen wrote: < 2017-05-15 17:00:41.861 CEST >LOG: parameter "archive_command" changed to ""/opt/omni/lbin/pgsqlbar.exe" -stage %p -backup" I believe /opt/omni is the d

Re: [GENERAL] Encrypt with BouncyCastle and decrypt with pg_pub_decrypt

2017-05-19 Thread Jeff Janes
On Thu, May 18, 2017 at 4:57 PM, Kang, Kamal wrote: > Hi all, > > > > I am trying to encrypt a string using Bouncy Castle PGP Java apis, Base64 > encode the encrypted string and then decrypt using pg_pub_decrypt but it is > failing with error “Wrong Key”. Just wanted to know if this is doable or

Re: [GENERAL] Serializable isolation -- are predicate locks still held across all databases?

2017-05-19 Thread Kevin Grittner
On Fri, May 19, 2017 at 6:56 AM, Karl O. Pinc wrote: > I think if I was to make an argument for doing something it would > be based on reliability -- how many users can you give their > own database before somebody leaves an open transaction hanging? Yeah, I guess it's worth having on the list,

Re: [GENERAL] Weird periodical pg log

2017-05-19 Thread John R Pierce
On 5/19/2017 1:25 AM, cen wrote: < 2017-05-15 17:00:41.861 CEST >LOG: parameter "archive_command" changed to ""/opt/omni/lbin/pgsqlbar.exe" -stage %p -backup" I believe /opt/omni is the default installation path for HP Data Protector, formerly known as OmniBack. That comprehensive backu

Re: [GENERAL] Weird periodical pg log

2017-05-19 Thread Adrian Klaver
On 05/19/2017 01:25 AM, cen wrote: Every single day at exactly the same hour I get this in my pg_log: < 2017-05-15 17:00:29.517 CEST >FATAL: pg_hba.conf rejects connection for host "...", user "postgres", database "template1", SSL off < 2017-05-15 17:00:29.571 CEST >WARNING: archive_mode ena

[GENERAL] Keeping sources of views, and tracking invalid objects (views) similar to oracle

2017-05-19 Thread bb ddd
Hello, This idea has been raised more or less before as well as the problems it would solve. These are old, but IMHO the problem remains: https://www.postgresql.org/message-id/24293.1272638299%40sss.pgh.pa.us https://www.postgresql.org/message-id/D86CC5D8-C65A-4196-BB94-91614A814D29%40gtwm.co.u

Re: [GENERAL] Serializable isolation -- are predicate locks still held across all databases?

2017-05-19 Thread Karl O. Pinc
On Fri, 19 May 2017 01:52:00 -0500 "Karl O. Pinc" wrote: > On Thu, 18 May 2017 12:04:42 -0500 > Kevin Grittner wrote: > > > On Thu, May 18, 2017 at 11:07 AM, Karl O. Pinc wrote: > > > > > ... Does PG > > > now pay attention to database in it's SSI implementation? > > > > Well, it pays

Re: [GENERAL] Weird periodical pg log

2017-05-19 Thread Karsten Hilbert
On Fri, May 19, 2017 at 10:25:13AM +0200, cen wrote: > < 2017-05-15 17:00:41.861 CEST >LOG: parameter "archive_command" changed to > ""/opt/omni/lbin/pgsqlbar.exe" -stage %p -backup" This is the line that you'll have to base your research on. Also, you might want to check for a keylogger in th

[GENERAL] Weird periodical pg log

2017-05-19 Thread cen
Every single day at exactly the same hour I get this in my pg_log: < 2017-05-15 17:00:29.517 CEST >FATAL: pg_hba.conf rejects connection for host "...", user "postgres", database "template1", SSL off < 2017-05-15 17:00:29.571 CEST >WARNING: archive_mode enabled, yet archive_command is not se

Re: [GENERAL] Error that shouldn't happen?

2017-05-19 Thread vinny
On 2017-05-18 21:48, Rob Brucks wrote: Hello Everyone, I am unable to figure out how the trigger was able to successfully create the table, but then fail creating the index. I would have expected one thread to "win" and create both the table and index, but other threads would fail when creating