Skip to content
Snippets Groups Projects
Select Git revision
  • 94d66be375b108c61bd05fc08b59e87c6d8fc81c
  • master default protected
  • 9.0
  • 8.0
  • 7.8
  • 7.6
  • 7.4
  • 7.2
  • 7.0
  • 0.6
  • rosuav/latex-markdown-renderer
  • rxnpatch/rxnpatch
  • marcus/gobject-introspection
  • rxnpatch/8.0
  • rosuav/pre-listening-ports
  • nt-tools
  • rosuav/async-annotations
  • rosuav/pgsql-ssl
  • rxnpatch/rxnpatch-broken/2023-10-06T094250
  • grubba/fdlib
  • grubba/wip/sakura/8.0
  • v8.0.2000
  • v8.0.1998
  • v8.0.1996
  • v8.0.1994
  • v8.0.1992
  • v8.0.1990
  • v8.0.1988
  • v8.0.1986
  • rxnpatch/clusters/8.0/2025-04-29T124414
  • rxnpatch/2025-04-29T124414
  • v8.0.1984
  • v8.0.1982
  • v8.0.1980
  • v8.0.1978
  • v8.0.1976
  • v8.0.1974
  • v8.0.1972
  • v8.0.1970
  • v8.0.1968
  • v8.0.1966
41 results

opcodes.c

Blame
    • Henrik (Grubba) Grubbström's avatar
      fa93a591
      Changed the definition of Pike_fp->context to a pointer. · fa93a591
      Henrik (Grubba) Grubbström authored
      This should reduce the overhead for apply() somewhat.
      
      Rev: src/apply_low.h:1.33
      Rev: src/builtin.cmod:1.194
      Rev: src/interpret.c:1.386
      Rev: src/interpret.h:1.171
      Rev: src/interpret_functions.h:1.200
      Rev: src/modules/Gmp/mpz_glue.c:1.171
      Rev: src/object.c:1.282
      Rev: src/object.h:1.93
      Rev: src/opcodes.c:1.170
      Rev: src/operators.c:1.227
      Rev: src/program.c:1.653
      fa93a591
      History
      Changed the definition of Pike_fp->context to a pointer.
      Henrik (Grubba) Grubbström authored
      This should reduce the overhead for apply() somewhat.
      
      Rev: src/apply_low.h:1.33
      Rev: src/builtin.cmod:1.194
      Rev: src/interpret.c:1.386
      Rev: src/interpret.h:1.171
      Rev: src/interpret_functions.h:1.200
      Rev: src/modules/Gmp/mpz_glue.c:1.171
      Rev: src/object.c:1.282
      Rev: src/object.h:1.93
      Rev: src/opcodes.c:1.170
      Rev: src/operators.c:1.227
      Rev: src/program.c:1.653
    postgres.pike 14.90 KiB
    /*
     * This is part of the Postgres module for Pike.
     *
     * $Id$
     *
     */
    
    #pike __REAL_VERSION__
    
    // Cannot dump this since the #if constant(...) check below may depend
    // on the presence of system libs at runtime.
    constant dont_dump_program = 1;
    
    #if constant(Postgres.postgres)
    
    //! This is an interface to the Postgres (Postgres95, pgsql) database
    //! server. This module may or may not be available on your Pike,
    //! depending whether the appropriate include and library files could
    //! be found at compile-time. Note that you @b{do not@} need to have a
    //! Postgres server running on your host to use this module: you can
    //! connect to the database over a TCP/IP socket.
    //!
    //! @note
    //! This driver has been @b{deprecated@}.  You should use the
    //! more advanced driver @[Sql.pgsql] to access PostgreSQL databases instead.
    //!
    //! @note
    //! Also note that @b{this module uses blocking I/O@} to connect
    //! to the server. It is thread-safe, and so it can be used in a
    //! multithread environment.
    //!
    //! The behavior of the Postgres C API also depends on certain
    //! environment variables defined in the environment of the Pike
    //! interpreter; some notice and warning notifications might are dumped
    //! on stderr.
    //!
    //! @string
    //!   @value "PGHOST"
    //!     Sets the name of the default host to connect to. It defaults
    //! 	to @expr{"localhost"@}.
    //!   @value "PGOPTIONS"
    //!     Sets some extra flags for the frontend-backend connection.
    //!     @b{do not set@} unless you're sure of what you're doing.
    //!   @value "PGPORT"
    //!     Sets the default port to connect to, otherwise it will use
    //!     compile-time defaults (that is: the time you compiled the postgres
    //! 	library, not the Pike driver).
    //!   @value "PGTTY"
    //!     Sets the file to be used for Postgres frontend debugging.
    //!     Do not use, unless you're sure of what you're doing.
    //!   @value "PGDATABASE"
    //!     Sets the default database to connect to.
    //!   @value "PGREALM"
    //!     Sets the default realm for Kerberos authentication. I never used
    //!   	this, so I can't help you.
    //! @endstring
    //!
    //! Refer to the Postgres documentation for further details.
    //!
    //! @seealso
    //!  @[Sql.pgsql], @[Sql.Sql], @[Postgres.postgres], @[Sql.postgres_result]
    
    #define ERROR(X) throw (({X,backtrace()}))
    
    inherit Postgres.postgres: mo;
    private protected mixed  callout;
    private string has_relexpires = "unknown";
    
    //! @decl void select_db(string dbname)
    //!