pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ROS Didier <didier.ros@edf.fr>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: ERROR:  invalid byte sequence for encoding "UTF8": 0xe9 0x6d 0x61
Date: Tue, 10 Oct 2017 13:28:56 +0000
Message-ID: <c9879a8bd95c4bf0b63d672e7921fed9@PCYINTPEXMU001.NEOPROD.EDF.FR> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

Hi
               The following function does not work anymore in PostgreSQL 9.6 (it worked in 9.3) :

>>
CREATE OR REPLACE FUNCTION fonction_verif_droits (pmodulename varchar(32), prolename varchar(15)) RETURNS boolean
AS $$
DECLARE is_exists BOOLEAN;
BEGIN
    -- Securisation du search_path: les schémas de confiance, puis 'pg_temp'.
    PERFORMpg_catalog.set_config('search_path', public,pg_temp', true);
    SELECT a.droit_acces INTO is_exists FROM gestion_droits a WHERE a.rolename=prolename AND a.module=pmodulename ;
    IF NOT FOUND THEN
        RETURN false;
    END IF;
    RETURN is_exists;
END
$$ LANGUAGE plpgsql SECURITY DEFINER;
<<
The error message is :
ERROR:  invalid byte sequence for encoding "UTF8": 0xe9 0x6d 0x61

Have you any idea where the problem comes from ?

Thanks in advance

Best regards

[cid:image001.png@01D341DC.7C0EED80]
Didier ROS
DSP/CSP IT-DMA/Solutions Groupe EDF/Expertise Applicative
Expertise SGBD
32 Avenue Pablo Picasso
92000 NANTERRE
Bureau : E2 565D (aile Nord-Est)
Tél. : 01.78.66.61.14
Tél. mobile : 06.49.51.11.88
Fax : 01.78.66.93.47
Mail : didier.ros@edf.fr
Mail du support : support-oracle-niveau3@edf.fr<mailto:support-oracle-niveau3@edf.fr>
Mail du support : support-postgres-niveau3@edf.fr<mailto:%20support-postgres-niveau3@edf.fr>
Site du support : https://sissi.edf.fr/web/expertise-sgbd/accueil




Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.

Attachments:

  [image/png] image001.png (5.5K, ../c9879a8bd95c4bf0b63d672e7921fed9@PCYINTPEXMU001.NEOPROD.EDF.FR/3-image001.png)
  download | view image

view thread (7+ messages)  latest in thread

Message-ID: <c9879a8bd95c4bf0b63d672e7921fed9@PCYINTPEXMU001.NEOPROD.EDF.FR>
Permalink:  ../c9879a8bd95c4bf0b63d672e7921fed9@PCYINTPEXMU001.NEOPROD.EDF.FR/
Also on:    postgresql.org/message-id/c9879a8bd95c4bf0b63d672e7921fed9@PCYINTPEXMU001.NEOPROD.EDF.FR

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: didier.ros@edf.fr
  Subject: Re: ERROR:  invalid byte sequence for encoding "UTF8": 0xe9 0x6d 0x61
  In-Reply-To: <c9879a8bd95c4bf0b63d672e7921fed9@PCYINTPEXMU001.NEOPROD.EDF.FR>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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