pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #11829: pgcrypto doc bug
4+ messages / 3 participants
[nested] [flat]

* BUG #11829: pgcrypto doc bug
@ 2014-10-30 19:39 jeff.janes@gmail.com
  2014-10-30 20:50 ` Re: BUG #11829: pgcrypto doc bug Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: jeff.janes@gmail.com @ 2014-10-30 19:39 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      11829
Logged by:          Jeff Janes
Email address:      jeff.janes@gmail.com
PostgreSQL version: 9.2.9
Operating system:   Linux
Description:        

pgp_sym_encrypt is documented to have an enable-session-key option.

But that option does not seem to exist, and as far as I can tell it never
has existed.

jjanes=# select pgp_sym_encrypt('foo','bar','enable-session-key=1');
ERROR:  Illegal argument to function



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #11829: pgcrypto doc bug
  2014-10-30 19:39 BUG #11829: pgcrypto doc bug jeff.janes@gmail.com
@ 2014-10-30 20:50 ` Tom Lane <tgl@sss.pgh.pa.us>
  2014-11-03 15:36   ` Re: BUG #11829: pgcrypto doc bug Marko Kreen <markokr@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2014-10-30 20:50 UTC (permalink / raw)
  To: jeff.janes@gmail.com; +Cc: pgsql-bugs; Marko Kreen <markokr@gmail.com>

jeff.janes@gmail.com writes:
> pgp_sym_encrypt is documented to have an enable-session-key option.

> But that option does not seem to exist, and as far as I can tell it never
> has existed.

> jjanes=# select pgp_sym_encrypt('foo','bar','enable-session-key=1');
> ERROR:  Illegal argument to function

A look at set_arg() suggests that the spelling of that option is really
"sess-key" ... Marko, is that correct?

I also notice that there are a bunch of undocumented options with
names beginning "expect-".  Should those be documented, and if so
could we get some text for that?

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #11829: pgcrypto doc bug
  2014-10-30 19:39 BUG #11829: pgcrypto doc bug jeff.janes@gmail.com
  2014-10-30 20:50 ` Re: BUG #11829: pgcrypto doc bug Tom Lane <tgl@sss.pgh.pa.us>
@ 2014-11-03 15:36   ` Marko Kreen <markokr@gmail.com>
  2014-11-03 15:47     ` Re: BUG #11829: pgcrypto doc bug Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Marko Kreen @ 2014-11-03 15:36 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: jeff.janes@gmail.com; pgsql-bugs

On Thu, Oct 30, 2014 at 04:50:44PM -0400, Tom Lane wrote:
> jeff.janes@gmail.com writes:
> > pgp_sym_encrypt is documented to have an enable-session-key option.
> 
> > But that option does not seem to exist, and as far as I can tell it never
> > has existed.
> 
> > jjanes=# select pgp_sym_encrypt('foo','bar','enable-session-key=1');
> > ERROR:  Illegal argument to function
> 
> A look at set_arg() suggests that the spelling of that option is really
> "sess-key" ... Marko, is that correct?

Yes.

> I also notice that there are a bunch of undocumented options with
> names beginning "expect-".  Should those be documented, and if so
> could we get some text for that?

They are mainly meant for regtests, to see if final message structure
is what is expected.  I don't see much value for users.

-- 
marko



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #11829: pgcrypto doc bug
  2014-10-30 19:39 BUG #11829: pgcrypto doc bug jeff.janes@gmail.com
  2014-10-30 20:50 ` Re: BUG #11829: pgcrypto doc bug Tom Lane <tgl@sss.pgh.pa.us>
  2014-11-03 15:36   ` Re: BUG #11829: pgcrypto doc bug Marko Kreen <markokr@gmail.com>
@ 2014-11-03 15:47     ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2014-11-03 15:47 UTC (permalink / raw)
  To: Marko Kreen <markokr@gmail.com>; +Cc: jeff.janes@gmail.com; pgsql-bugs

Marko Kreen <markokr@gmail.com> writes:
> On Thu, Oct 30, 2014 at 04:50:44PM -0400, Tom Lane wrote:
>> A look at set_arg() suggests that the spelling of that option is really
>> "sess-key" ... Marko, is that correct?

> Yes.

Will fix.

>> I also notice that there are a bunch of undocumented options with
>> names beginning "expect-".  Should those be documented, and if so
>> could we get some text for that?

> They are mainly meant for regtests, to see if final message structure
> is what is expected.  I don't see much value for users.

OK, thanks for checking.  I see we're not documenting the "debug"
option either, so this seems sensible, though perhaps a comment in
the code is warranted.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2014-11-03 15:47 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-10-30 19:39 BUG #11829: pgcrypto doc bug jeff.janes@gmail.com
2014-10-30 20:50 ` Tom Lane <tgl@sss.pgh.pa.us>
2014-11-03 15:36   ` Marko Kreen <markokr@gmail.com>
2014-11-03 15:47     ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox